mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 11:43:07 +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
|
- (void)updateDebuggerButtons
|
||||||
{
|
{
|
||||||
bool updateContinue = false;
|
bool updateContinue = false;
|
||||||
|
@@ -208,6 +208,11 @@
|
|||||||
<action selector="reset:" target="-1" id="VV1-VP-L7g"/>
|
<action selector="reset:" target="-1" id="VV1-VP-L7g"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</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">
|
<menuItem title="Pause" keyEquivalent="p" id="4K4-hw-R7Q">
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="togglePause:" target="-1" id="osW-wt-QAa"/>
|
<action selector="togglePause:" target="-1" id="osW-wt-QAa"/>
|
||||||
|
Reference in New Issue
Block a user