From f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Fri, 2 Sep 2022 00:38:07 +0200 Subject: Refactor cleanup (some formatting fixes) (#257) * Fix some formatting * More formatting fixes --- NorthstarDLL/playlist.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'NorthstarDLL/playlist.cpp') 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(); - R2::SetCurrentPlaylist = module.Offset(0x18EB20).As (); - R2::SetPlaylistVarOverride = module.Offset(0x18ED00).As(); - R2::GetCurrentPlaylistVar = module.Offset(0x18C680).As(); + R2::GetCurrentPlaylistName = module.Offset(0x18C640).As(); + R2::SetCurrentPlaylist = module.Offset(0x18EB20).As(); + R2::SetPlaylistVarOverride = module.Offset(0x18ED00).As(); + R2::GetCurrentPlaylistVar = module.Offset(0x18C680).As(); // 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); -- cgit v1.2.3