mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-22 22:58:12 +03:00
System3: L 101-126 returns 255 if save file does not exist
This fixes an issue in Hashiri Onna II where "Data Load" appears in the start menu even though there is no save. (#32)
This commit is contained in:
@@ -645,7 +645,9 @@ void NACT_Sys3::cmd_l()
|
||||
auto fio = FILEIO::open(file_name, FILEIO_READ_BINARY | FILEIO_SAVEDATA);
|
||||
if (fio) {
|
||||
fio->seek(112 + 16, SEEK_SET);
|
||||
var[0] = fio->getw();
|
||||
RND = fio->getw();
|
||||
} else {
|
||||
RND = 255;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user