mirror of
https://github.com/FranLMSP/snes.git
synced 2026-08-03 08:30:01 -04:00
Restart emulation as soon as a ROM is loaded
This commit is contained in:
@@ -34,9 +34,14 @@ impl Emulator {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reset(&mut self) {
|
||||
pub fn reset_vector(&mut self) {
|
||||
self.cpu.reset_vector(&mut self.bus);
|
||||
}
|
||||
|
||||
pub fn hard_reset(&mut self) {
|
||||
self.cpu = CPU::new();
|
||||
self.bus = Bus::new();
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Emulator {
|
||||
|
||||
Reference in New Issue
Block a user