mirror of
https://github.com/ksherlock/ample.git
synced 2025-07-02 10:23:57 +00:00
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:
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user