From 41f7162e982fd703e09ceb828c14398fe18de9cd Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 20 Mar 2021 16:01:22 +0000 Subject: [PATCH] Hellfire: Better error if some MPQs are missing Makes the issue more obvious. --- Source/init.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/init.cpp b/Source/init.cpp index c6434c296..548244d2d 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -192,6 +192,13 @@ void init_archives() hfvoice_mpq = init_test_access(paths, "hfvoice.mpq", "DiabloInstall", 8500, FS_PC); hfopt1_mpq = init_test_access(paths, "hfopt1.mpq", "DiabloInstall", 8600, FS_PC); hfopt2_mpq = init_test_access(paths, "hfopt2.mpq", "DiabloInstall", 8610, FS_PC); + + if (gbIsHellfire && (hfmonk_mpq == NULL || hfmusic_mpq == NULL || hfvoice_mpq == NULL)) + { + UiErrorOkDialog("Some Hellfire MPQs are missing", "Not all Hellfire MPQs were found.\nPlease copy all the hf*.mpq files."); + app_fatal(NULL); + } + devilutionx_mpq = init_test_access(paths, "devilutionx.mpq", "DiabloInstall", 9000, FS_PC); }