mirror of https://github.com/stella-emu/stella.git
Exec command: search script first in current directory.
This commit is contained in:
parent
ff4603d81f
commit
2f787fbb91
|
@ -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--;
|
||||
|
|
Loading…
Reference in New Issue