Add support for 2012 MFC Studio

This commit is contained in:
pizzaboxer 2022-01-26 22:39:02 +00:00
parent 783cf16b88
commit 4b10cd9f6d
4 changed files with 10 additions and 3 deletions

View File

@ -60,6 +60,13 @@
#define ADDRESS_CCOMMANDLINEINFO__PARSELAST 0x0081354A #define ADDRESS_CCOMMANDLINEINFO__PARSELAST 0x0081354A
#endif #endif
// RobloxApp/RobloxPlayer (2012)
#ifdef MFC2012
#define ADDRESS_HTTP__TRUSTCHECK 0x006D5D20
#define ADDRESS_CRYPT__VERIFYSIGNATUREBASE64 0x009B1D20
#endif
// RobloxPlayerBeta (2012)
#ifdef PLAYER2012 #ifdef PLAYER2012
// so 2012's a bit different // so 2012's a bit different
// VMProtect likes to offset the memory locations randomly on startup // VMProtect likes to offset the memory locations randomly on startup

View File

@ -4,11 +4,13 @@
#include <oaidl.h> #include <oaidl.h>
#ifdef ARBITERBUILD
struct DataModel struct DataModel
{ {
void* padding1[CLASSPADDING_DATAMODEL__JOBID]; void* padding1[CLASSPADDING_DATAMODEL__JOBID];
std::string jobId; std::string jobId;
}; };
#endif
#if defined(MFC2010) || defined(MFC2011) #if defined(MFC2010) || defined(MFC2011)
// 2010 struct definitions: // 2010 struct definitions:

View File

@ -144,6 +144,7 @@ BOOL __fastcall Application__ParseArguments_hook(int _this, void*, int a2, const
{ {
hasJobId = true; hasJobId = true;
jobId = argslist["-jobId"]; jobId = argslist["-jobId"];
Logger::Initialize(jobId);
// now we have to reconstruct the args to exclude the -jobId arg // now we have to reconstruct the args to exclude the -jobId arg
std::stringstream argsrecon; std::stringstream argsrecon;

View File

@ -32,9 +32,6 @@ 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 PLAYER2012
Logger::Initialize("player2012Test");
#endif
LONG error = Patches::Apply(); LONG error = Patches::Apply();
if (error != NO_ERROR) if (error != NO_ERROR)
{ {