aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-10-06 17:01:50 +0100
committerGitHub <noreply@github.com>2024-10-06 18:01:50 +0200
commit42d97028e1a474e7fecc1de7e76c5d92ecf2c28f (patch)
tree788fcd0aafacbc3a73d3baaa89587d6b54f57ec7
parent8a29c5bbd05cf52007a8aa3ff833c8fed237a625 (diff)
downloadNorthstarLauncher-1.28.4-rc1.tar.gz
NorthstarLauncher-1.28.4-rc1.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
-rw-r--r--primedev/core/filesystem/rpakfilesystem.cpp4
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;
}
}