2 Commits

Author SHA1 Message Date
clobber 1d9b0bb13c Bump version for sparkle updater. Core is still 0.149 2018-09-08 21:40:40 -05:00
clobber 999565397d Fix restoring autosave states on launch. 2018-09-08 21:36:44 -05:00
2 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.149.2</string>
<string>0.149.3</string>
<key>NSPrincipalClass</key>
<string>OEGameCoreController</string>
<key>OEGameCoreClass</key>
+15 -7
View File
@@ -223,6 +223,8 @@ static INT32 joystick_get_state(void *device_internal, void *item_internal)
{
driver = drivlist.driver();
verified = YES;
[NSThread detachNewThreadSelector:@selector(mameEmuThread) toTarget:self withObject:nil];
}
else
{
@@ -232,15 +234,16 @@ static INT32 joystick_get_state(void *device_internal, void *item_internal)
delete output;
}
}
return verified;
}
- (void)startEmulation
{
[super startEmulation];
[NSThread detachNewThreadSelector:@selector(mameEmuThread) toTarget:self withObject:nil];
}
// FIXME: Weird bug. This is not being called when restoring an autosave state on launch.
//- (void)startEmulation
//{
// [super startEmulation];
// [NSThread detachNewThreadSelector:@selector(mameEmuThread) toTarget:self withObject:nil];
//}
- (void)stopEmulation
{
@@ -358,6 +361,11 @@ static INT32 joystick_get_state(void *device_internal, void *item_internal)
- (void)osd_update:(bool)skip_redraw
{
osd_event_set(_renderEvent);
if (!skip_redraw && !_machine->save_or_load_pending())
{
osd_event_set(_renderEvent);
}
}
- (void)executeFrame
@@ -515,7 +523,7 @@ static INT32 joystick_get_state(void *device_internal, void *item_internal)
if(bytesToWrite > bytesAvailableToWrite)
{
NSLog(@"MAME: Audio buffer overflow");
DLog(@"MAME: Audio buffer overflow");
bytesToWrite = bytesAvailableToWrite;
}