Minor UI fix

This commit is contained in:
Lior Halphon 2020-04-11 21:48:47 +03:00
parent 32a0dc0e43
commit db9410caa5
3 changed files with 8 additions and 2 deletions

View File

@ -646,7 +646,7 @@ static void audioCallback(GB_gameboy_t *gb, GB_sample_t *sample)
GB_load_rom(&gb, [self.fileName UTF8String]); GB_load_rom(&gb, [self.fileName UTF8String]);
GB_load_battery(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"sav"] UTF8String]); GB_load_battery(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"sav"] UTF8String]);
GB_load_cheats(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"cht"] UTF8String]); GB_load_cheats(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"cht"] UTF8String]);
[self.cheatWindowController.cheatsTable reloadData]; [self.cheatWindowController cheatsUpdated];
GB_debugger_clear_symbols(&gb); GB_debugger_clear_symbols(&gb);
GB_debugger_load_symbol_file(&gb, [[[NSBundle mainBundle] pathForResource:@"registers" ofType:@"sym"] UTF8String]); GB_debugger_load_symbol_file(&gb, [[[NSBundle mainBundle] pathForResource:@"registers" ofType:@"sym"] UTF8String]);
GB_debugger_load_symbol_file(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"sym"] UTF8String]); GB_debugger_load_symbol_file(&gb, [[[self.fileName stringByDeletingPathExtension] stringByAppendingPathExtension:@"sym"] UTF8String]);

View File

@ -12,6 +12,6 @@
@property (weak) IBOutlet NSTextField *importCodeField; @property (weak) IBOutlet NSTextField *importCodeField;
@property (weak) IBOutlet NSTextField *importDescriptionField; @property (weak) IBOutlet NSTextField *importDescriptionField;
@property (weak) IBOutlet Document *document; @property (weak) IBOutlet Document *document;
- (void)cheatsUpdated;
@end @end

View File

@ -231,4 +231,10 @@
[self.cheatsTable reloadData]; [self.cheatsTable reloadData];
} }
- (void)cheatsUpdated
{
[self.cheatsTable reloadData];
[self tableViewSelectionDidChange:nil];
}
@end @end