mirror of
https://github.com/ksherlock/ample.git
synced 2025-01-09 15:30:04 +00:00
adjust -nomax arg
This commit is contained in:
parent
96a1cbf820
commit
0abbc8ceae
@ -173,9 +173,11 @@ static NSString * JoinArguments(NSArray *argv) {
|
|||||||
[argv addObject: _mameMachine];
|
[argv addObject: _mameMachine];
|
||||||
|
|
||||||
if (_mameDebug) [argv addObject: @"-debug"];
|
if (_mameDebug) [argv addObject: @"-debug"];
|
||||||
if (_mameWindow) [argv addObject: @"-window"];
|
if (_mameWindow) {
|
||||||
|
[argv addObject: @"-window"];
|
||||||
// -nounevenstretch -video soft
|
[argv addObject: @"-nomax"];
|
||||||
|
}
|
||||||
|
|
||||||
[argv addObject: @"-skip_gameinfo"];
|
[argv addObject: @"-skip_gameinfo"];
|
||||||
|
|
||||||
if (_mameWindow && _mameSquarePixels) {
|
if (_mameWindow && _mameSquarePixels) {
|
||||||
@ -184,7 +186,6 @@ static NSString * JoinArguments(NSArray *argv) {
|
|||||||
NSString *res = [NSString stringWithFormat: @"%ux%u", (unsigned)screen.width, (unsigned)screen.height];
|
NSString *res = [NSString stringWithFormat: @"%ux%u", (unsigned)screen.width, (unsigned)screen.height];
|
||||||
NSString *aspect = [NSString stringWithFormat: @"%u:%u", (unsigned)screen.width, (unsigned)screen.height];
|
NSString *aspect = [NSString stringWithFormat: @"%u:%u", (unsigned)screen.width, (unsigned)screen.height];
|
||||||
|
|
||||||
[argv addObject: @"-nomax"];
|
|
||||||
[argv addObject: @"-nounevenstretch"];
|
[argv addObject: @"-nounevenstretch"];
|
||||||
|
|
||||||
[argv addObject: @"-resolution"];
|
[argv addObject: @"-resolution"];
|
||||||
@ -233,13 +234,13 @@ static NSString * JoinArguments(NSArray *argv) {
|
|||||||
NSString *path = [defaults stringForKey: @"MamePath"];
|
NSString *path = [defaults stringForKey: @"MamePath"];
|
||||||
if (![path length]) path = @"/usr/local/bin/mame";
|
if (![path length]) path = @"/usr/local/bin/mame";
|
||||||
|
|
||||||
NSError *error = nil;
|
|
||||||
NSURL *url = [NSURL fileURLWithPath: path];
|
NSURL *url = [NSURL fileURLWithPath: path];
|
||||||
|
|
||||||
NSTask *task = [NSTask new];
|
NSTask *task = [NSTask new];
|
||||||
[task setExecutableURL: url];
|
[task setExecutableURL: url];
|
||||||
[task setArguments: _args];
|
[task setArguments: _args];
|
||||||
#if 0
|
#if 0
|
||||||
|
// interferes w/ termination notification.
|
||||||
[task setTerminationHandler: ^(NSTask *t){
|
[task setTerminationHandler: ^(NSTask *t){
|
||||||
|
|
||||||
}];
|
}];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user