Skip to content

Commit 09e95b1

Browse files
committed
Don't call isRunning which no longer exists
1 parent a1c09fc commit 09e95b1

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

VecXGL/VectrexGameCore.m

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)