Load font file from devilutionx.mpq

This commit is contained in:
staphen 2021-05-09 00:48:41 -04:00 committed by Anders Jenbo
commit e5d32da8a2

View file

@ -175,6 +175,9 @@ void init_archives()
LogVerbose("MPQ search paths:{}", message);
}
// Load devilutionx.mpq first to get the font file for error messages
devilutionx_mpq = LoadMPQ(paths, "devilutionx.mpq");
diabdat_mpq = LoadMPQ(paths, "DIABDAT.MPQ");
if (diabdat_mpq == nullptr) {
// DIABDAT.MPQ is uppercase on the original CD and the GOG version.
@ -214,8 +217,6 @@ void init_archives()
UiErrorOkDialog(_("Some Hellfire MPQs are missing"), _("Not all Hellfire MPQs were found.\nPlease copy all the hf*.mpq files."));
app_fatal(nullptr);
}
devilutionx_mpq = LoadMPQ(paths, "devilutionx.mpq");
}
void init_create_window()