diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-10-06 17:01:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 18:01:50 +0200 |
commit | 42d97028e1a474e7fecc1de7e76c5d92ecf2c28f (patch) | |
tree | 788fcd0aafacbc3a73d3baaa89587d6b54f57ec7 /primedev/core | |
parent | 8a29c5bbd05cf52007a8aa3ff833c8fed237a625 (diff) | |
download | NorthstarLauncher-42d97028e1a474e7fecc1de7e76c5d92ecf2c28f.tar.gz NorthstarLauncher-42d97028e1a474e7fecc1de7e76c5d92ecf2c28f.zip |
Fix rpak aliasing not working when trying to alias towards a vanilla rpak (#825)v1.28.4-rc1v1.28.3-rc2v1.28.3
Replace incorrect variable with hardcoded `-1`
Don't account for the modded path in pak aliases
Diffstat (limited to 'primedev/core')
-rw-r--r-- | primedev/core/filesystem/rpakfilesystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/core/filesystem/rpakfilesystem.cpp b/primedev/core/filesystem/rpakfilesystem.cpp index ebb9085a..c3e5e74e 100644 --- a/primedev/core/filesystem/rpakfilesystem.cpp +++ b/primedev/core/filesystem/rpakfilesystem.cpp @@ -342,7 +342,7 @@ void PakLoadManager::UnloadDependentPaks(PakHandle handle) static void HandlePakAliases(std::string& originalPath) { // convert the pak being loaded to its aliased one, e.g. aliasing mp_hub_timeshift => sp_hub_timeshift - for (int64_t i = g_pModManager->m_LoadedMods.size() - 1; i > PakHandle::INVALID; i--) + for (int64_t i = g_pModManager->m_LoadedMods.size() - 1; i > -1; i--) { Mod* mod = &g_pModManager->m_LoadedMods[i]; if (!mod->m_bEnabled) @@ -350,7 +350,7 @@ static void HandlePakAliases(std::string& originalPath) if (mod->RpakAliases.find(originalPath) != mod->RpakAliases.end()) { - originalPath = (mod->m_ModDirectory / "paks" / mod->RpakAliases[originalPath]).string(); + originalPath = mod->RpakAliases[originalPath]; return; } } |