Exec command: search script first in current directory.

This commit is contained in:
Markus Uhr 2017-11-13 22:21:14 +01:00 committed by Stephen Anthony
parent ff4603d81f
commit 2f787fbb91
1 changed files with 4 additions and 1 deletions

View File

@ -1064,7 +1064,10 @@ void DebuggerParser::executeExec()
if(file.find_last_of('.') == string::npos)
file += ".script";
FilesystemNode node(debugger.myOSystem.defaultSaveDir() + file);
FilesystemNode node(file);
if (!node.exists()) {
node = FilesystemNode(debugger.myOSystem.defaultSaveDir() + file);
}
execDepth++;
commandResult << exec(node);
execDepth--;