set the current directory to the Application Support directory when

launching mame.

Eventually, application support directory will include bgfx, roms, etc.
This commit is contained in:
Kelvin Sherlock 2020-09-01 23:52:58 -04:00
parent e512fb982a
commit cfe0e950c4
1 changed files with 6 additions and 6 deletions

View File

@ -279,12 +279,12 @@ static NSString * JoinArguments(NSArray *argv) {
NSTask *task = [NSTask new];
[task setExecutableURL: url];
[task setArguments: _args];
#if 0
// interferes w/ termination notification.
[task setTerminationHandler: ^(NSTask *t){
}];
#endif
if (![defaults boolForKey: kUseCustomMame]) {
// run in Application Support/Ample.
[task setCurrentDirectoryURL: SupportDirectory()];
}
[LogWindowController controllerForTask: task];
}