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