This commit is contained in:
Alex Janka 2023-05-03 15:00:35 +10:00
parent 66f9ce31bc
commit f02d45f563
2 changed files with 2 additions and 2 deletions

View file

@ -376,7 +376,7 @@ where
} }
fn parse_oam(&mut self, scanline: u8) -> Vec<Object> { fn parse_oam(&mut self, scanline: u8) -> Vec<Object> {
let mut objs = vecVec::new(); let mut objs = Vec::new();
let effective_scanline = scanline + 16; let effective_scanline = scanline + 16;
for i in (0xFE00..0xFE9F).step_by(4) { for i in (0xFE00..0xFE9F).step_by(4) {
let y_pos = self.oam.get(i.try_into().unwrap()); let y_pos = self.oam.get(i.try_into().unwrap());

View file

@ -43,7 +43,7 @@ const NUM_WRITES_TO_FLUSH: usize = 256;
impl MaybeBufferedSram { impl MaybeBufferedSram {
fn new(path: Option<PathBuf>, length: usize) -> Self { fn new(path: Option<PathBuf>, length: usize) -> Self {
let mut buf = vecVec::new(); let mut buf = Vec::new();
let inner = if let Some(path) = path { let inner = if let Some(path) = path {
if path.exists() { if path.exists() {
let mut writer = OpenOptions::new() let mut writer = OpenOptions::new()