support for -share_directory (booti card). No UI support yet, though.

This commit is contained in:
Kelvin Sherlock 2021-05-16 11:06:12 -04:00
parent 5e87627251
commit a8e03a9490
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,7 @@ static NSString *kContextMachine = @"kContextMachine";
@property NSString *mameAVIPath;
@property NSString *mameWAVPath;
@property NSString *mameVGMPath;
@property NSString *mameShareDirectory;
@property NSInteger mameSpeed;
@ -91,6 +92,7 @@ static NSString *kContextMachine = @"kContextMachine";
@"mameAVI", @"mameAVIPath",
@"mameWAV", @"mameWAVPath",
@"mameVGM", @"mameVGMPath",
@"mameShareDirectory",
@"mameBGFX", @"mameBackend", @"mameEffects",
];
@ -405,6 +407,12 @@ static NSString *ShellQuote(NSString *s) {
}
}
if (_mameShareDirectory && [_mameShareDirectory length]) {
[argv addObject: @"-share_directory"];
[argv addObject: _mameShareDirectory];
}
[self setCommandLine: JoinArguments(argv, nil)];
[self setArgs: argv];
}