From 5aa2e9380bed854412eab58a7d4d4249ebdb26a7 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 23 Mar 2024 20:51:50 +0000 Subject: [PATCH] hotfix: add back skip_bios function --- core/src/gpu/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/gpu/mod.rs b/core/src/gpu/mod.rs index bf7ca77..58153d4 100644 --- a/core/src/gpu/mod.rs +++ b/core/src/gpu/mod.rs @@ -198,6 +198,15 @@ impl Gpu { } } + pub fn skip_bios(&mut self) { + for i in 0..2 { + self.bg_aff[i].pa = 0x100; + self.bg_aff[i].pb = 0; + self.bg_aff[i].pc = 0; + self.bg_aff[i].pd = 0x100; + } + } + /// helper method that reads the palette index from a base address and x + y pub fn read_pixel_index(&mut self, addr: u32, x: u32, y: u32, format: PixelFormat) -> usize { match format {