File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,22 +121,23 @@ class OpenEphysApplication : public JUCEApplication
121
121
for (auto param : parameters)
122
122
{
123
123
if (param.equalsIgnoreCase (" --headless" ))
124
+ {
124
125
isConsoleApp = true ;
125
-
126
- else if (File::createLegalFileName (param). equalsIgnoreCase (param ))
126
+ }
127
+ else if (fileToLoad. getFullPathName (). isEmpty ( ))
127
128
{
128
129
File localPath (File::getCurrentWorkingDirectory ().getChildFile (param));
129
130
130
131
if (localPath.existsAsFile ())
131
132
{
132
133
fileToLoad = localPath;
133
- break ;
134
+ continue ;
134
135
}
135
136
136
- // File globalPath(param);
137
+ File globalPath (param);
137
138
138
- // if (globalPath.existsAsFile())
139
- // fileToLoad = globalPath;
139
+ if (globalPath.existsAsFile ())
140
+ fileToLoad = globalPath;
140
141
}
141
142
}
142
143
You can’t perform that action at this time.
0 commit comments