aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/rpakfilesystem.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 18:28:27 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 18:28:27 +0100
commit7a2f17c9d13371e1beb62014f2ec0169124c9862 (patch)
tree3f12d8c25392fb461f0a3b03dc9cd510631c7400 /NorthstarDedicatedTest/rpakfilesystem.cpp
parent5a58dd1c05e943d6b440bea5b4a6ae80ce16841e (diff)
downloadNorthstarLauncher-7a2f17c9d13371e1beb62014f2ec0169124c9862.tar.gz
NorthstarLauncher-7a2f17c9d13371e1beb62014f2ec0169124c9862.zip
move tier0 and playlist funcs to namespaces
Diffstat (limited to 'NorthstarDedicatedTest/rpakfilesystem.cpp')
-rw-r--r--NorthstarDedicatedTest/rpakfilesystem.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/NorthstarDedicatedTest/rpakfilesystem.cpp b/NorthstarDedicatedTest/rpakfilesystem.cpp
index c7bab5ee..fce7ddf1 100644
--- a/NorthstarDedicatedTest/rpakfilesystem.cpp
+++ b/NorthstarDedicatedTest/rpakfilesystem.cpp
@@ -28,7 +28,7 @@ struct PakLoadFuncs
PakLoadFuncs* g_pakLoadApi;
void** pUnknownPakLoadSingleton;
-PakLoadManager* g_PakLoadManager;
+PakLoadManager* g_pPakLoadManager;
void PakLoadManager::LoadPakSync(const char* path)
{
g_pakLoadApi->LoadPakSync(path, *pUnknownPakLoadSingleton, 0);
@@ -79,7 +79,7 @@ void LoadPreloadPaks()
for (ModRpakEntry& pak : mod.Rpaks)
if (pak.m_bAutoLoad)
- g_PakLoadManager->LoadPakAsync((modPakPath / pak.m_sPakName).string().c_str(), false);
+ g_pPakLoadManager->LoadPakAsync((modPakPath / pak.m_sPakName).string().c_str(), false);
}
}
@@ -114,7 +114,7 @@ void LoadCustomMapPaks(char** pakName, bool* bNeedToFreePakName)
true; // we can't free this memory until we're done with the pak, so let whatever's calling this deal with it
}
else
- g_PakLoadManager->LoadPakAsync((modPakPath / pak.m_sPakName).string().c_str(), true);
+ g_pPakLoadManager->LoadPakAsync((modPakPath / pak.m_sPakName).string().c_str(), true);
}
}
}
@@ -166,7 +166,7 @@ void* UnloadPakHook(int pakHandle, void* callback)
if (bShouldUnloadPaks)
{
bShouldUnloadPaks = false;
- g_PakLoadManager->UnloadPaks();
+ g_pPakLoadManager->UnloadPaks();
bShouldUnloadPaks = true;
}
@@ -209,7 +209,7 @@ void* ReadFullFileFromDiskHook(const char* requestedPath, void* a2)
ON_DLL_LOAD("engine.dll", RpakFilesystem, (HMODULE baseAddress)
{
- g_PakLoadManager = new PakLoadManager;
+ g_pPakLoadManager = new PakLoadManager;
g_pakLoadApi = *(PakLoadFuncs**)((char*)baseAddress + 0x5BED78);
pUnknownPakLoadSingleton = (void**)((char*)baseAddress + 0x7C5E20);