Report errors using SDL message box

This commit is contained in:
kichikuou
2019-12-27 19:41:55 +09:00
parent 874f6bae5b
commit 6e73c48e68
6 changed files with 41 additions and 26 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ AGS::AGS(NACT* parent, const char* fontfile) : nact(parent)
hFont48 = TTF_OpenFont(fontfile, 48);
hFont64 = TTF_OpenFont(fontfile, 64);
if (!hFont16 || !hFont24 || !hFont32 || !hFont48 || !hFont64) {
printf("Cannot open font file %s\n", fontfile);
exit(1);
parent->fatal("Cannot open font file %s", fontfile);
}
// カーソル初期化