aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/rpakfilesystem.cpp
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-09-02 00:38:07 +0200
committerGitHub <noreply@github.com>2022-09-02 00:38:07 +0200
commitf2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8 (patch)
treeeb23e0d5ebfc8f796b7bde55179ae3dc0ae46d3f /NorthstarDLL/rpakfilesystem.cpp
parent80673fb5cfa32d3ff75d54c4c4173d32905fda30 (diff)
downloadNorthstarLauncher-f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8.tar.gz
NorthstarLauncher-f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8.zip
Refactor cleanup (some formatting fixes) (#257)
* Fix some formatting * More formatting fixes
Diffstat (limited to 'NorthstarDLL/rpakfilesystem.cpp')
-rw-r--r--NorthstarDLL/rpakfilesystem.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/NorthstarDLL/rpakfilesystem.cpp b/NorthstarDLL/rpakfilesystem.cpp
index 895cfd79..d5cff26c 100644
--- a/NorthstarDLL/rpakfilesystem.cpp
+++ b/NorthstarDLL/rpakfilesystem.cpp
@@ -14,7 +14,7 @@ struct PakLoadFuncs
void* unk1[2];
void* (*UnloadPak)(int iPakHandle, void* callback);
void* unk2[6];
- void* (*LoadFile)(const char* path);//unsure
+ void* (*LoadFile)(const char* path); // unsure
void* unk3[10];
void* (*ReadFileAsync)(const char* pPath, void* a2);
};
@@ -173,8 +173,7 @@ void LoadCustomMapPaks(char** pakName, bool* bNeedToFreePakName)
}
}
-HOOK(LoadPakAsyncHook, LoadPakAsync,
-int,, (char* pPath, void* unknownSingleton, int flags, void* pCallback0, void* pCallback1))
+HOOK(LoadPakAsyncHook, LoadPakAsync, int, , (char* pPath, void* unknownSingleton, int flags, void* pCallback0, void* pCallback1))
{
HandlePakAliases(&pPath);
@@ -207,7 +206,7 @@ int,, (char* pPath, void* unknownSingleton, int flags, void* pCallback0, void* p
delete[] pPath;
spdlog::info("Not loading pak {} for dedicated server", originalPath);
- return -1;
+ return -1;
}
}
@@ -273,7 +272,6 @@ void*, , (const char* pPath, void* pCallback))
return ret;
}
-
ON_DLL_LOAD("engine.dll", RpakFilesystem, (CModule module))
{
AUTOHOOK_DISPATCH();