Skip to content
Snippets Groups Projects
Commit ed9f9306 authored by leprob001's avatar leprob001
Browse files

Moved load functions of rfb and soundsource file to the file package.

parent eef71ec1
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,19 @@ global artoaDataInput;
%% Initialize variables
artoaDataInput.rfb = false;
%% Get required variables
folder = artoa.data.getMember(artoaDataInput, {'ini', 'directory', 'rfb'}, pwd());
filter = artoa.data.getMember(artoaDataInput, {'ini', 'filemask', 'rfb'}, '*.rfb');
%% Create file dialog and filename
[file, path] = uigetfile('*.rfb');
[file, path] = uigetfile(fullfile(folder, filter));
filepath = fullfile(path, file);
%% Check if the dialog has been aborted
if file == 0
return;
end
%% Check if file exists
if ~isfile(filepath)
error([mfilename ': Selected file ' filepath ' is not a file! Please try again!']);
......
......@@ -6,10 +6,19 @@ global artoaGui artoaDataInput;
%% Initialize variables
artoaDataInput.soundsources = false;
%% Get required variables
folder = artoa.data.getMember(artoaDataInput, {'ini', 'directory', 'soundsource'}, pwd());
filter = artoa.data.getMember(artoaDataInput, {'ini', 'filemask', 'soundsource'}, '*.soso');
%% Create file dialog and filename
[file, path] = uigetfile('*.soso');
[file, path] = uigetfile(fullfile(folder, filter));
filepath = fullfile(path, file);
%% Check if dialog has been aborted
if file == 0
return;
end
%% Check if file exists
if ~isfile(filepath)
error([mfilename ': Selected file ' filepath ' is not a file! Please try again!']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment