diff options
Diffstat (limited to 'NorthstarDLL/rpakfilesystem.cpp')
-rw-r--r-- | NorthstarDLL/rpakfilesystem.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/NorthstarDLL/rpakfilesystem.cpp b/NorthstarDLL/rpakfilesystem.cpp index 6c01a2e0..895cfd79 100644 --- a/NorthstarDLL/rpakfilesystem.cpp +++ b/NorthstarDLL/rpakfilesystem.cpp @@ -13,7 +13,9 @@ struct PakLoadFuncs int (*LoadPakAsync)(const char* pPath, void* unknownSingleton, int flags, void* callback0, void* callback1); void* unk1[2]; void* (*UnloadPak)(int iPakHandle, void* callback); - void* unk2[17]; + void* unk2[6]; + void* (*LoadFile)(const char* path);//unsure + void* unk3[10]; void* (*ReadFileAsync)(const char* pPath, void* a2); }; @@ -78,6 +80,11 @@ int PakLoadManager::GetPakHandle(const char* pPath) return GetPakHandle(STR_HASH(pPath)); } +void* PakLoadManager::LoadFile(const char* path) +{ + return g_pakLoadApi->LoadFile(path); +} + void HandlePakAliases(char** map) { // convert the pak being loaded to it's aliased one, e.g. aliasing mp_hub_timeshift => sp_hub_timeshift |