hotfix: add back skip_bios function

This commit is contained in:
Muhammad Nauman Raza 2024-03-23 20:51:50 +00:00
parent d8dd99c9e4
commit 5aa2e9380b
No known key found for this signature in database
GPG key ID: 31BC90D626D2DBBE

View file

@ -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 /// 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 { pub fn read_pixel_index(&mut self, addr: u32, x: u32, y: u32, format: PixelFormat) -> usize {
match format { match format {