diff --git a/Source/diablo.cpp b/Source/diablo.cpp index ae1d2d33b..fad2b6983 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -1109,7 +1109,7 @@ void CheckArchivesUpToDate() } } -void DiabloInit() +void ApplicationInit() { if (*sgOptions.Graphics.showFPS) EnableFrameCount(); @@ -1130,6 +1130,11 @@ void DiabloInit() SetApplicationVersions(); + ReadOnlyTest(); +} + +void DiabloInit() +{ for (size_t i = 0; i < QUICK_MESSAGE_OPTIONS; i++) { auto &messages = sgOptions.Chat.szHotKeyMsgs[i]; if (messages.empty()) { @@ -1144,8 +1149,6 @@ void DiabloInit() UiInitialize(); was_ui_init = true; - ReadOnlyTest(); - if (gbIsHellfire && !forceHellfire && *sgOptions.StartUp.gameMode == StartUpGameMode::Ask) { UiSelStartUpGameOption(); if (!gbIsHellfire) { @@ -2414,6 +2417,9 @@ int DiabloMain(int argc, char **argv) // Then look for a voice pack file based on the selected translation LoadLanguageArchive(); + ApplicationInit(); + SaveOptions(); + // Finally load game data LoadGameArchives();