Implement custom paks loading per level

Game will check scripts/levels/mapname.json and load all rpaks in the rpak field.
Game now also unloads pak files loaded by the SDK preventing crashes and unnecessary memory usage.

VPK's and STBSP's are planned to be added as well.
This commit is contained in:
Amos
2022-03-01 02:39:46 +01:00
parent 0509fb0358
commit 6583e174de
18 changed files with 323 additions and 82 deletions

View File

@@ -70,7 +70,7 @@ void ImGuiConfig::Load()
}
catch (const std::exception& ex)
{
DevMsg(eDLL_T::MS, "ImGui config file '%s' not found. Changing the settings in the console or server browser options re-create's it. Exception: '%s'\n", fsPath.string().c_str(), ex.what());
DevMsg(eDLL_T::MS, "ImGui config file '%s' not found\n Changing the settings in the console or server browser options re-create's it\n Exception: '%s'\n", fsPath.string().c_str(), ex.what());
return;
}
}