From 51df18abbc0c344b56f88e0a66b6b46d6aca375c Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 1 Oct 2021 17:16:42 +0100 Subject: Revert "small modmanager refactors" This reverts commit 1ff8e068e62d095775ef2ae54d3685d89238f28c. --- NorthstarDedicatedTest/filesystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'NorthstarDedicatedTest/filesystem.cpp') diff --git a/NorthstarDedicatedTest/filesystem.cpp b/NorthstarDedicatedTest/filesystem.cpp index 127a9484..1e17017e 100644 --- a/NorthstarDedicatedTest/filesystem.cpp +++ b/NorthstarDedicatedTest/filesystem.cpp @@ -107,7 +107,7 @@ bool TryReplaceFile(char* path, bool shouldCompile) auto file = g_ModManager->m_modFiles.find(fs::path(path).lexically_normal().string()); if (file != g_ModManager->m_modFiles.end()) { - SetNewModSearchPaths(file->second.owningMod); + SetNewModSearchPaths(file->second->owningMod); return true; } @@ -167,12 +167,12 @@ VPKData* MountVPKHook(IFileSystem* fileSystem, const char* vpkPath) spdlog::info("MountVPK {}", vpkPath); VPKData* ret = mountVPK(fileSystem, vpkPath); - for (Mod mod : g_ModManager->m_loadedMods) + for (Mod* mod : g_ModManager->m_loadedMods) { - if (!mod.Enabled) + if (!mod->Enabled) continue; - for (std::string& vpkPath : mod.Vpks) + for (std::string& vpkPath : mod->Vpks) { spdlog::info(vpkPath); spdlog::info((void*)mountVPK(fileSystem, vpkPath.c_str())); -- cgit v1.2.3