Fix persistent save data getting loaded before mods.

This commit is contained in:
Skyth 2025-04-03 18:00:10 +03:00
parent 21be4e17fb
commit b70b5c3b87

View file

@ -237,9 +237,6 @@ int main(int argc, char *argv[])
Config::Load();
if (!PersistentStorageManager::LoadBinary())
LOGFN_ERROR("Failed to load persistent storage binary... (status code {})", (int)PersistentStorageManager::BinStatus);
if (forceInstallationCheck)
{
// Create the console to show progress to the user, otherwise it will seem as if the game didn't boot at all.
@ -342,6 +339,9 @@ int main(int argc, char *argv[])
ModLoader::Init();
if (!PersistentStorageManager::LoadBinary())
LOGFN_ERROR("Failed to load persistent storage binary... (status code {})", (int)PersistentStorageManager::BinStatus);
KiSystemStartup();
uint32_t entry = LdrLoadModule(modulePath);