mirror of https://github.com/LIJI32/SameBoy.git
Fix a bug where a GBS file will not correctly play the first track unless explicitly switching to it. Reloading a GBS file is disabled because it's not supported.
This commit is contained in:
parent
8508eb7b7c
commit
42ffbd18d0
|
@ -749,11 +749,12 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
|
|||
if (old_width != GB_get_screen_width(&_gb)) {
|
||||
[self.view screenSizeChanged];
|
||||
}
|
||||
|
||||
[self updateMinSize];
|
||||
|
||||
|
||||
[self start];
|
||||
if (_gbsTracks) {
|
||||
[self changeGBSTrack:sender];
|
||||
}
|
||||
|
||||
if (_hexController) {
|
||||
/* Verify bank sanity, especially when switching models. */
|
||||
|
@ -1445,6 +1446,9 @@ static bool is_path_writeable(const char *path)
|
|||
else if ([anItem action] == @selector(decreaseWindowSize:)) {
|
||||
return [self newRect:NULL forWindow:_mainWindow action:GBWindowResizeActionDecrease];
|
||||
}
|
||||
else if ([anItem action] == @selector(reloadROM:)) {
|
||||
return !_gbsTracks;
|
||||
}
|
||||
|
||||
return [super validateUserInterfaceItem:anItem];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue