Add support for 2012 MFC Studio
This commit is contained in:
parent
783cf16b88
commit
4b10cd9f6d
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue