mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 10:58:07 +03:00
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:
@@ -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);
|
||||
|
||||
// 各種クラス生成
|
||||
|
||||
Reference in New Issue
Block a user