mirror of
https://github.com/FranLMSP/snes.git
synced 2026-08-03 08:30:01 -04:00
upgrade eframe and wgpu
This commit is contained in:
@@ -35,6 +35,12 @@ impl Bus {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn hard_reset(&mut self) {
|
||||
self.wram = [0; 0x10000];
|
||||
self.internal_registers = InternalRegisters::new();
|
||||
self.dma = DMA::new();
|
||||
}
|
||||
|
||||
fn read_wram(&self, address: u32) -> u8 {
|
||||
self.wram[(address & 0xFFFF) as usize]
|
||||
}
|
||||
|
||||
@@ -40,7 +40,8 @@ impl Emulator {
|
||||
|
||||
pub fn hard_reset(&mut self) {
|
||||
self.cpu = CPU::new();
|
||||
self.bus = Bus::new();
|
||||
self.bus.hard_reset();
|
||||
self.reset_vector();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user