Reorganize initialization error reporting

- Invalid game id -> sys_error() in GameId::GameId()
- Unknown crc32 -> SDL_ShowSimpleMessageBox() in GameId::GameId()
- Cannot open ADISK.DAT -> sys_error() in NACT::NACT()
This commit is contained in:
kichikuou
2025-01-03 12:36:27 +09:00
parent a7dbdd0510
commit ffe11c695e
5 changed files with 14 additions and 11 deletions
+2
View File
@@ -53,6 +53,8 @@ NACT::NACT(const Config& config, const GameId& game_id)
sco.open("AGAME.DAT");
else
sco.open("ADISK.DAT");
if (!sco.loaded())
sys_error("Cannot open scenario file");
sco.page_jump(0, 2);
// 各種クラス生成