summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Login/RemoteLogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csgo-loader/csgo-client/Login/RemoteLogin.cpp')
-rw-r--r--csgo-loader/csgo-client/Login/RemoteLogin.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/csgo-loader/csgo-client/Login/RemoteLogin.cpp b/csgo-loader/csgo-client/Login/RemoteLogin.cpp
index 9362162..6e70f86 100644
--- a/csgo-loader/csgo-client/Login/RemoteLogin.cpp
+++ b/csgo-loader/csgo-client/Login/RemoteLogin.cpp
@@ -1,5 +1,4 @@
#include <Login/RemoteLogin.hpp>
-#include <UserExperience/UserInterface.hpp>
// Change this whenever a major client update is made.
// NOTE: You must change this on the server as well.
@@ -9,6 +8,8 @@ namespace Login
{
void RemoteLoginTransaction::Start(const char *Username, const char *Password)
{
+ VMProtectBeginUltra("LoginTransactionStart");
+
// Initialise the header with the client header.
m_Header.m_ClientHeader = CURRENT_CLIENT_HEADER;
@@ -29,6 +30,8 @@ namespace Login
m_Header.m_IntegrityBit4 = m_Header.m_IntegrityBit1
| m_Header.m_IntegrityBit2
| m_Header.m_IntegrityBit3;
+
+ VMProtectEnd();
}
// TODO: Hardware ID check.
@@ -45,20 +48,20 @@ namespace Login
case RemoteLoginResponse::ACCESS_AUTHORISED:
return true;
case RemoteLoginResponse::OUTDATED_CLIENT:
- INFO_ASSERT("[000A:%08x] Your client is outdated.\nPlease download the latest client at 'moneybot.cc'.", m_Header.m_HardwareId ^ ServerResponse);
+ INFO_ASSERT(STR("[000A:%08x] Your client is outdated.\nPlease download the latest client at 'moneybot.cc'."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::USER_BANNED:
- INFO_ASSERT("[000D:%08x] Your account is banned.\nPlease contact 'admin@moneybot.cc' for additional information.", m_Header.m_HardwareId ^ ServerResponse);
+ INFO_ASSERT(STR("[000D:%08x] Your account is banned.\nPlease contact 'admin@moneybot.cc' for additional information."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::INVALID_HARDWARE:
UserInterface->m_Data.m_Error = UserExperience::ERROR_INVALID_HWID;
break;
case RemoteLoginResponse::INVALID_CREDENTIALS:
- INFO_ASSERT("[000C:%08x] Your credentials are invalid. Please check your spelling and try again.", m_Header.m_HardwareId ^ ServerResponse);
+ INFO_ASSERT(STR("[000C:%08x] Your credentials are invalid. Please check your spelling and try again."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::INTEGRITY_FAILURE:
case RemoteLoginResponse::NO_SUBSCRIPTION:
- INFO_ASSERT("[0005:%08x] No active subscription found.", m_Header.m_HardwareId ^ ServerResponse);
+ INFO_ASSERT(STR("[0005:%08x] No active subscription found."), m_Header.m_HardwareId ^ ServerResponse);
break;
}