Fix build issues + "ARBITERBUILD" => "ARBITER"
This commit is contained in:
parent
256f487e6e
commit
ed8731e756
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "Discord.h"
|
||||
|
||||
#ifndef ARBITERBUILD
|
||||
#ifndef ARBITER
|
||||
|
||||
std::string username;
|
||||
int placeId;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "Hooks/CRoblox.h"
|
||||
|
||||
static std::string ticket;
|
||||
std::string ticket = "";
|
||||
|
||||
static bool hasAuthUrlArg = false;
|
||||
static bool hasAuthTicketArg = false;
|
||||
|
|
@ -27,7 +27,7 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this)
|
|||
CApp__RobloxAuthenticate(app, nullptr, authenticationUrl.c_str(), authenticationTicket.c_str());
|
||||
}
|
||||
|
||||
#ifdef PLAYERBUILD
|
||||
#ifndef ARBITER
|
||||
if (hasJoinArg && !joinScriptUrl.empty())
|
||||
{
|
||||
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)
|
||||
{
|
||||
#ifdef PLAYERBUILD
|
||||
#ifndef ARBITER
|
||||
if (hasJoinArg && joinScriptUrl.empty())
|
||||
{
|
||||
int size = MultiByteToWideChar(CP_ACP, 0, pszParam, strlen(pszParam), nullptr, 0);
|
||||
|
|
@ -125,7 +125,7 @@ void __fastcall CRobloxCommandLineInfo__ParseParam_hook(CRobloxCommandLineInfo*
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef PLAYERBUILD
|
||||
#ifndef ARBITER
|
||||
if (bFlag && _stricmp(pszParam, "j") == 0)
|
||||
{
|
||||
hasJoinArg = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "Hooks/ServerReplicator.h"
|
||||
|
||||
#if defined(ARBITERBUILD)
|
||||
#if defined(ARBITER)
|
||||
|
||||
static std::map<ServerReplicator*, RakPeerInterface*> rakPeers;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#define BASE_URL "tadah.rocks"
|
||||
#define BASE_URL "https://tadah.rocks"
|
||||
#define DISCORD_APP_ID 923705431543668736
|
||||
|
||||
#define ALLOWED_WILDCARD_DOMAINS "tadah.rocks", "rbxcdn.com", "roblox.com"
|
||||
|
|
@ -14,8 +14,7 @@
|
|||
#define PUBLIC_KEY 0x06, 0x02, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x52, 0x53, 0x41, 0x31, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x15, 0x67, 0xeb, 0x78, 0xcb, 0x01, 0x8c, 0x2d, 0xf3, 0x26, 0x09, 0xbb, 0x50, 0xbf, 0xc1, 0xcd, 0x2a, 0xc4, 0x86, 0x11, 0x18, 0x15, 0xab, 0xe8, 0x22, 0x4e, 0xc6, 0x93, 0x6e, 0x8b, 0xf3, 0x61, 0x8b, 0x17, 0xe0, 0xb4, 0x71, 0xa9, 0x05, 0xa4, 0xf3, 0x53, 0x03, 0x5f, 0x75, 0x65, 0xc1, 0xda, 0x47, 0xa9, 0xc2, 0xa5, 0x64, 0x98, 0x2c, 0x07, 0xdc, 0x50, 0x32, 0xde, 0xa3, 0x4b, 0x2e, 0xfd, 0x7f, 0xcf, 0x54, 0x67, 0x26, 0xda, 0xb2, 0x0b, 0xb0, 0xba, 0x58, 0xd4, 0xb0, 0x5a, 0x14, 0x0a, 0x43, 0x22, 0x9e, 0x39, 0xe7, 0x25, 0x9b, 0x86, 0x28, 0x9a, 0x2e, 0xaa, 0xae, 0x7e, 0x38, 0xbf, 0x3a, 0xab, 0xf3, 0xda, 0x7c, 0x2f, 0x31, 0x84, 0x32, 0x14, 0xd8, 0x69, 0xcf, 0xf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 0x14, 0x94, 0x4c, 0x3a, 0xa8, 0x26, 0xb2, 0x23, 0xf1, 0x1c, 0x5f, 0x12, 0x3e, 0xce, 0xee, 0x62, 0xa4, 0x91, 0xcb, 0xdc, 0x5a, 0x6c, 0x8d, 0x37, 0x27, 0x07, 0xce, 0xf7, 0xf8, 0x33, 0x56, 0x40, 0x70, 0x83, 0xe6
|
||||
#endif
|
||||
|
||||
#define PLAYERBUILD
|
||||
// #define ARBITERBUILD
|
||||
// #define ARBITER
|
||||
|
||||
#define CLASSPADDING_DATAMODEL__JOBID 739
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,7 @@
|
|||
#include "Configuration.h"
|
||||
#include "Hooks/CRoblox.h"
|
||||
|
||||
#ifndef ARBITERBUILD
|
||||
|
||||
std::thread updater;
|
||||
#ifndef ARBITER
|
||||
|
||||
void InitializeDiscord();
|
||||
void UpdatePresence();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "Configuration.h"
|
||||
|
||||
#if defined(ARBITERBUILD)
|
||||
#if defined(ARBITER)
|
||||
|
||||
struct Packet
|
||||
{
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@
|
|||
<VcpkgEnableManifest>true</VcpkgEnableManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)packages</VcpkgInstalledDir>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "Configuration.h"
|
||||
#include "Patches.h"
|
||||
|
||||
#ifndef ARBITERBUILD
|
||||
#ifndef ARBITER
|
||||
#include "Discord.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
#include "Hooks/Context.h"
|
||||
#endif
|
||||
|
||||
#ifdef ARBITERBUILD
|
||||
#ifdef ARBITER
|
||||
#include "Hooks/StandardOut.h"
|
||||
#include "Hooks/ServerReplicator.h"
|
||||
#endif
|
||||
|
|
@ -31,16 +31,16 @@ ADD_PATCH(Crypt__verifySignatureBase64, Crypt__verifySignatureBase64_hook)
|
|||
ADD_PATCH(Context__requirePermission, Context__requirePermission_hook)
|
||||
#endif
|
||||
|
||||
#ifdef ARBITERBUILD
|
||||
#ifdef ARBITER
|
||||
ADD_PATCH(StandardOut__print, StandardOut__print_hook)
|
||||
#endif
|
||||
|
||||
#if defined(ARBITERBUILD) && defined(MFC2011)
|
||||
#if defined(ARBITER) && defined(MFC2011)
|
||||
ADD_PATCH(ServerReplicator__sendTop, ServerReplicator__sendTop_hook)
|
||||
ADD_PATCH(ServerReplicator__processTicket, ServerReplicator__processTicket_hook)
|
||||
#endif
|
||||
|
||||
#if defined(ARBITERBUILD) && defined(PLAYER2012)
|
||||
#if defined(ARBITER) && defined(PLAYER2012)
|
||||
ADD_PATCH(Application__ParseArguments, Application__ParseArguments_hook)
|
||||
#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)
|
||||
{
|
||||
#ifdef ARBITERBUILD
|
||||
#ifdef ARBITER
|
||||
InitializeOutput();
|
||||
#endif
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
|||
ExitProcess(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#ifndef ARBITERBUILD
|
||||
#ifndef ARBITER
|
||||
InitializeDiscord();
|
||||
#endif
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
|
|||
{
|
||||
curl_global_cleanup();
|
||||
|
||||
#ifndef ARBITERBUILD
|
||||
#ifndef ARBITER
|
||||
CleanupDiscord();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue