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:
Lior Halphon 2025-06-26 20:57:47 +03:00
parent 8508eb7b7c
commit 42ffbd18d0
1 changed files with 6 additions and 2 deletions

View File

@ -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];
}