small change
This commit is contained in:
parent
6b43bdb3d8
commit
e3b464ce02
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "Discord.h"
|
#include "Discord.h"
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
|
|
||||||
std::string username;
|
std::string username;
|
||||||
int placeId;
|
int placeId;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this)
|
||||||
CApp__RobloxAuthenticate(app, nullptr, authenticationUrl.c_str(), authenticationTicket.c_str());
|
CApp__RobloxAuthenticate(app, nullptr, authenticationUrl.c_str(), authenticationTicket.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
if (hasJoinArg && !joinScriptUrl.empty())
|
if (hasJoinArg && !joinScriptUrl.empty())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -47,7 +47,7 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this)
|
||||||
|
|
||||||
void __fastcall CRobloxCommandLineInfo__ParseParam_hook(CRobloxCommandLineInfo* _this, void*, const char* pszParam, BOOL bFlag, BOOL bLast)
|
void __fastcall CRobloxCommandLineInfo__ParseParam_hook(CRobloxCommandLineInfo* _this, void*, const char* pszParam, BOOL bFlag, BOOL bLast)
|
||||||
{
|
{
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
if (hasJoinArg && joinScriptUrl.empty())
|
if (hasJoinArg && joinScriptUrl.empty())
|
||||||
{
|
{
|
||||||
int size = MultiByteToWideChar(CP_ACP, 0, pszParam, strlen(pszParam), nullptr, 0);
|
int size = MultiByteToWideChar(CP_ACP, 0, pszParam, strlen(pszParam), nullptr, 0);
|
||||||
|
|
@ -125,7 +125,7 @@ void __fastcall CRobloxCommandLineInfo__ParseParam_hook(CRobloxCommandLineInfo*
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
if (bFlag && _stricmp(pszParam, "j") == 0)
|
if (bFlag && _stricmp(pszParam, "j") == 0)
|
||||||
{
|
{
|
||||||
hasJoinArg = true;
|
hasJoinArg = true;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "Hooks/ServerReplicator.h"
|
#include "Hooks/ServerReplicator.h"
|
||||||
|
|
||||||
#if defined(ARBITER)
|
#if defined(SERVER)
|
||||||
|
|
||||||
static std::map<ServerReplicator*, RakPeerInterface*> rakPeers;
|
static std::map<ServerReplicator*, RakPeerInterface*> rakPeers;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Hooks/CRoblox.h"
|
#include "Hooks/CRoblox.h"
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
|
|
||||||
void InitializeDiscord();
|
void InitializeDiscord();
|
||||||
void UpdatePresence();
|
void UpdatePresence();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
||||||
#if defined(ARBITER)
|
#if defined(SERVER)
|
||||||
|
|
||||||
struct Packet
|
struct Packet
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Patches.h"
|
#include "Patches.h"
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
#include "Discord.h"
|
#include "Discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
#include "Hooks/Context.h"
|
#include "Hooks/Context.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ARBITER
|
#ifdef SERVER
|
||||||
#include "Hooks/StandardOut.h"
|
#include "Hooks/StandardOut.h"
|
||||||
#include "Hooks/ServerReplicator.h"
|
#include "Hooks/ServerReplicator.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -31,16 +31,16 @@ ADD_PATCH(Crypt__verifySignatureBase64, Crypt__verifySignatureBase64_hook)
|
||||||
ADD_PATCH(Context__requirePermission, Context__requirePermission_hook)
|
ADD_PATCH(Context__requirePermission, Context__requirePermission_hook)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ARBITER
|
#ifdef SERVER
|
||||||
ADD_PATCH(StandardOut__print, StandardOut__print_hook)
|
ADD_PATCH(StandardOut__print, StandardOut__print_hook)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ARBITER) && defined(MFC2011)
|
#if defined(SERVER) && defined(MFC2011)
|
||||||
ADD_PATCH(ServerReplicator__sendTop, ServerReplicator__sendTop_hook)
|
ADD_PATCH(ServerReplicator__sendTop, ServerReplicator__sendTop_hook)
|
||||||
ADD_PATCH(ServerReplicator__processTicket, ServerReplicator__processTicket_hook)
|
ADD_PATCH(ServerReplicator__processTicket, ServerReplicator__processTicket_hook)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ARBITER) && defined(PLAYER2012)
|
#if defined(SERVER) && defined(PLAYER2012)
|
||||||
ADD_PATCH(Application__ParseArguments, Application__ParseArguments_hook)
|
ADD_PATCH(Application__ParseArguments, Application__ParseArguments_hook)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -57,7 +57,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
||||||
{
|
{
|
||||||
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
#ifdef ARBITER
|
#ifdef SERVER
|
||||||
InitializeOutput();
|
InitializeOutput();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -83,7 +83,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
||||||
ExitProcess(EXIT_FAILURE);
|
ExitProcess(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
InitializeDiscord();
|
InitializeDiscord();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -92,7 +92,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
||||||
{
|
{
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
#ifndef ARBITER
|
#ifndef SERVER
|
||||||
CleanupDiscord();
|
CleanupDiscord();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue