Skip to content
Snippets Groups Projects
Commit 12e9daac authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Improving load function of Zoom session class, now will also detect zoom...

Improving load function of Zoom session class, now will also detect zoom sessions without the common directory naming from the device
parent ce4ce620
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,15 @@ function load( obj, session_path )
end
if isempty( obj.identifier )
lst = dir('*.hprj' );
if numel( lst ) ~= 1
error 'Could not interpret the given path as a zoom session';
else
[ ~, obj.identifier ] = fileparts( lst.name );
end
end
if strcmpi( 'ZOOM', obj.identifier( 1:4 ) )
id_cells = textscan( obj.identifier( 5:8 ), '%d' );
obj.index = id_cells{ 1 };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment