File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -86,18 +86,17 @@ - (void)executeFrame
8686
8787- (void )startEmulation
8888{
89- if (!isRunning)
89+ if (self.rate != 0 ) return ;
90+
91+ [super startEmulation ];
92+ vecx_reset ();
93+
94+ NSFileManager *defaultFileManager = [NSFileManager defaultManager ];
95+ if ([defaultFileManager fileExistsAtPath: [[romPath stringByDeletingPathExtension ] stringByAppendingString: @" .tga" ]])
9096 {
91- [super startEmulation ];
92- vecx_reset ();
93-
94- NSFileManager *defaultFileManager = [NSFileManager defaultManager ];
95- if ([defaultFileManager fileExistsAtPath: [[romPath stringByDeletingPathExtension ] stringByAppendingString: @" .tga" ]])
96- {
97- // Too early to load overlay, the context is not ready
98- // load_overlay((char *)[[[romPath stringByDeletingPathExtension] stringByAppendingString:@".tga"] UTF8String]);
99- overlayFile = [[romPath stringByDeletingPathExtension ] stringByAppendingString: @" .tga" ];
100- }
97+ // Too early to load overlay, the context is not ready
98+ // load_overlay((char *)[[[romPath stringByDeletingPathExtension] stringByAppendingString:@".tga"] UTF8String]);
99+ overlayFile = [[romPath stringByDeletingPathExtension ] stringByAppendingString: @" .tga" ];
101100 }
102101}
103102
You can’t perform that action at this time.
0 commit comments