Minor UI fix
This commit is contained in:
parent
32a0dc0e43
commit
db9410caa5
@ -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]);
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -231,4 +231,10 @@
|
|||||||
[self.cheatsTable reloadData];
|
[self.cheatsTable reloadData];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)cheatsUpdated
|
||||||
|
{
|
||||||
|
[self.cheatsTable reloadData];
|
||||||
|
[self tableViewSelectionDidChange:nil];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user