mirror of https://github.com/ksherlock/ample.git
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:
parent
e512fb982a
commit
cfe0e950c4
|
@ -279,12 +279,12 @@ static NSString * JoinArguments(NSArray *argv) {
|
||||||
NSTask *task = [NSTask new];
|
NSTask *task = [NSTask new];
|
||||||
[task setExecutableURL: url];
|
[task setExecutableURL: url];
|
||||||
[task setArguments: _args];
|
[task setArguments: _args];
|
||||||
#if 0
|
|
||||||
// interferes w/ termination notification.
|
if (![defaults boolForKey: kUseCustomMame]) {
|
||||||
[task setTerminationHandler: ^(NSTask *t){
|
// run in Application Support/Ample.
|
||||||
|
[task setCurrentDirectoryURL: SupportDirectory()];
|
||||||
}];
|
}
|
||||||
#endif
|
|
||||||
[LogWindowController controllerForTask: task];
|
[LogWindowController controllerForTask: task];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue