Fix persistent save data getting loaded before mods. (#1505)

This commit is contained in:
Skyth (Asilkan) 2025-04-03 18:14:29 +03:00 committed by GitHub
parent 21be4e17fb
commit ff5aae2595
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);