Fix persistent save data getting loaded before mods. (#1505)
Some checks are pending
validate-internal / build (push) Waiting to run

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

@ -236,9 +236,6 @@ int main(int argc, char *argv[])
} }
Config::Load(); Config::Load();
if (!PersistentStorageManager::LoadBinary())
LOGFN_ERROR("Failed to load persistent storage binary... (status code {})", (int)PersistentStorageManager::BinStatus);
if (forceInstallationCheck) if (forceInstallationCheck)
{ {
@ -342,6 +339,9 @@ int main(int argc, char *argv[])
ModLoader::Init(); ModLoader::Init();
if (!PersistentStorageManager::LoadBinary())
LOGFN_ERROR("Failed to load persistent storage binary... (status code {})", (int)PersistentStorageManager::BinStatus);
KiSystemStartup(); KiSystemStartup();
uint32_t entry = LdrLoadModule(modulePath); uint32_t entry = LdrLoadModule(modulePath);