mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 06:13:23 +02:00
Add a menu item to reload the ROM without resetting
This commit is contained in:
@@ -2697,6 +2697,20 @@ enum GBWindowResizeAction
|
||||
}];
|
||||
}
|
||||
|
||||
- (IBAction)reloadROM:(id)sender
|
||||
{
|
||||
bool wasRunning = _running;
|
||||
if (wasRunning) {
|
||||
[self stop];
|
||||
}
|
||||
|
||||
[self loadROM];
|
||||
|
||||
if (wasRunning) {
|
||||
[self start];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)updateDebuggerButtons
|
||||
{
|
||||
bool updateContinue = false;
|
||||
|
@@ -208,6 +208,11 @@
|
||||
<action selector="reset:" target="-1" id="VV1-VP-L7g"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Reload ROM" alternate="YES" keyEquivalent="R" id="eQP-Fb-nkz">
|
||||
<connections>
|
||||
<action selector="reloadROM:" target="-1" id="BpN-8V-Csg"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Pause" keyEquivalent="p" id="4K4-hw-R7Q">
|
||||
<connections>
|
||||
<action selector="togglePause:" target="-1" id="osW-wt-QAa"/>
|
||||
|
Reference in New Issue
Block a user