aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/playlist.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/playlist.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/playlist.cpp')
-rw-r--r--NorthstarDLL/playlist.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/NorthstarDLL/playlist.cpp b/NorthstarDLL/playlist.cpp
index 87847fc1..7cf9e41e 100644
--- a/NorthstarDLL/playlist.cpp
+++ b/NorthstarDLL/playlist.cpp
@@ -33,7 +33,7 @@ AUTOHOOK(SetCurrentPlaylist, engine.dll + 0x18EB20,
bool, __fastcall, (const char* pPlaylistName))
{
bool bSuccess = SetCurrentPlaylist(pPlaylistName);
-
+
if (bSuccess)
{
spdlog::info("Set playlist to {}", R2::GetCurrentPlaylistName());
@@ -72,7 +72,6 @@ int,, ())
return iMaxPlayers;
}
-
void ConCommand_playlist(const CCommand& args)
{
if (args.ArgC() < 2)
@@ -94,10 +93,10 @@ ON_DLL_LOAD_RELIESON("engine.dll", PlaylistHooks, (ConCommand, ConVar), (CModule
{
AUTOHOOK_DISPATCH()
- R2::GetCurrentPlaylistName = module.Offset(0x18C640).As<const char*(*)()>();
- R2::SetCurrentPlaylist = module.Offset(0x18EB20).As <void(*)(const char*)>();
- R2::SetPlaylistVarOverride = module.Offset(0x18ED00).As<void(*)(const char*, const char*)>();
- R2::GetCurrentPlaylistVar = module.Offset(0x18C680).As<const char*(*)(const char*, bool)>();
+ R2::GetCurrentPlaylistName = module.Offset(0x18C640).As<const char* (*)()>();
+ R2::SetCurrentPlaylist = module.Offset(0x18EB20).As<void (*)(const char*)>();
+ R2::SetPlaylistVarOverride = module.Offset(0x18ED00).As<void (*)(const char*, const char*)>();
+ R2::GetCurrentPlaylistVar = module.Offset(0x18C680).As<const char* (*)(const char*, bool)>();
// playlist is the name of the command on respawn servers, but we already use setplaylist so can't get rid of it
RegisterConCommand("playlist", ConCommand_playlist, "Sets the current playlist", FCVAR_NONE);