From 23aae89b6c00c7553af77e42a6fab8955db2bd19 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 10 Mar 2016 22:51:26 +0100 Subject: [PATCH] Remove XUID authentication on debug --- src/Components/Modules/Auth.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/Modules/Auth.cpp b/src/Components/Modules/Auth.cpp index 2b7db050..8f25e936 100644 --- a/src/Components/Modules/Auth.cpp +++ b/src/Components/Modules/Auth.cpp @@ -10,6 +10,7 @@ namespace Components void Auth::Frame() { +#ifndef DEBUG for (int i = 0; i < *Game::svs_numclients; i++) { Game::client_t* client = &Game::svs_clients[i]; @@ -58,6 +59,7 @@ namespace Components } } } +#endif if (Auth::TokenContainer.generating) { @@ -380,8 +382,10 @@ namespace Components // Register dvar Dvar::Register("sv_securityLevel", 23, 0, 512, Game::dvar_flag::DVAR_FLAG_SERVERINFO, "Security level for GUID certificates (POW)"); +#ifndef DEBUG // Install registration hook Utils::Hook(0x478A12, Auth::RegisterClientStub, HOOK_JUMP).Install()->Quick(); +#endif // Guid command Command::Add("guid", [] (Command::Params params)