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];
|
||||
[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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue