86 lines
4.2 KiB
C++
86 lines
4.2 KiB
C++
#pragma once
|
|
#include "../Utils/globals.h"
|
|
|
|
// All RVAs below verified against the user's DUMPER-7 runtime dump (Aug 2026). Game-code offsets
|
|
// happen to be IDENTICAL to the July 19 2025 reference build the original 2025Patch targeted -
|
|
// that's why we can reuse the same numbers unchanged. If a future build shifts these, re-dump and
|
|
// update this file (or fall back to pattern-scanning).
|
|
|
|
namespace RR::Methods::Referee {
|
|
// Referee's 4 anti-tamper check functions. Original July 19 offsets.
|
|
uintptr_t Check1 = 0x76E850;
|
|
uintptr_t Check2 = 0x2E6F680;
|
|
uintptr_t Check3 = 0x2E6F670;
|
|
uintptr_t Check4 = 0x2E6F6E0;
|
|
}
|
|
|
|
namespace RR::Methods::LegacyTlsAuthentication {
|
|
// NOP'd -> game accepts any TLS cert (needed for the private server's self-signed cert).
|
|
uintptr_t NotifyServerCertificate = 0x77E5E30;
|
|
}
|
|
|
|
namespace RR::Methods::HTTPManager {
|
|
// HTTPManager.SendRequest(HTTPRequest* request) - the single-arg internal SendRequest that
|
|
// carries the URI on request+0x10. Hooked to redirect ns.rec.net -> CAMPUS_NAMESERVER_HOST.
|
|
uintptr_t SendRequest = 0x77E0950;
|
|
}
|
|
|
|
// RecNet HTTP response callback. CBACIMLIBPF.CLCAHKCJDLC(request, response, promise) fires
|
|
// once BestHTTP has a completed response for a RecNet-managed request. Signature is
|
|
// (HTTPRequest*, DPEENGNNEEB*, Promise*). The response has the HTTP status code as int32 at
|
|
// +0x10 (verified against the runtime dump). Hooking here lets us log "URI [STATUS]" in a
|
|
// single line — the URI comes off request+0x10 the same way SendRequest_H reads it.
|
|
namespace RR::Methods::RecNetHttp {
|
|
uintptr_t ResponseCallback = 0x7CC2BD0;
|
|
}
|
|
|
|
namespace RR::Methods::System::Uri {
|
|
uintptr_t ToString = 0x935AF50;
|
|
uintptr_t ctor = 0x935C2A0; // Uri..ctor(string) - single-arg overload
|
|
}
|
|
|
|
// Photon connect entry points. Each takes Photon.Realtime.AppSettings* as its first non-this
|
|
// argument; we Prefix them so the game's own AppSettings gets its identity fields (AppId*,
|
|
// AppVersion) overwritten to Campus values before Photon actually connects.
|
|
namespace RR::Methods::Photon {
|
|
uintptr_t OLPEILEPEAD_JBNCMFDFDLM = 0x757E8C0; // realtime connect
|
|
uintptr_t OEOMKFKDCCG_JBNCMFDFDLM = 0x759B710; // PUN wrapper
|
|
uintptr_t VoiceConnection_ConnectUsingSettings = 0x75F55D0; // Photon.Voice
|
|
uintptr_t PhotonVoiceNetwork_ConnectUsingSettings = 0x75FB2B0; // Photon.Voice.PUN
|
|
}
|
|
|
|
// AppSettings field offsets from Photon.Realtime.AppSettings.h in the dump. Il2Cpp string fields
|
|
// are pointers to Il2CppString*; we replace them with pointers returned by il2cpp_string_new.
|
|
namespace RR::Methods::AppSettingsFields {
|
|
constexpr ptrdiff_t AppIdRealtime = 0x10; // Il2CppString*
|
|
constexpr ptrdiff_t AppIdChat = 0x18; // Il2CppString*
|
|
constexpr ptrdiff_t AppIdVoice = 0x20; // Il2CppString*
|
|
constexpr ptrdiff_t AppVersion = 0x28; // Il2CppString*
|
|
}
|
|
|
|
// Resolved at runtime. On protected builds GameAssembly.dll's export table is STRIPPED, so
|
|
// GetProcAddress returns null for every il2cpp_* name. When that happens we fall back to a
|
|
// UnityPlayer.dll memory scan (see UnityPlayerScan in Patches.h).
|
|
namespace RR::Methods::Il2cpp {
|
|
uintptr_t il2cpp_string_new;
|
|
uintptr_t il2cpp_object_get_class;
|
|
uintptr_t il2cpp_object_new;
|
|
}
|
|
|
|
// UnityEngine.Gradient - the managed wrapper around the native gradient. get_colorKeys returns a
|
|
// FRESH copy of the color-key array each call; modifying that array locally does not sync back
|
|
// unless we then call SetKeys to marshal to the C++ side. Values here are RVAs verified against
|
|
// the Aug 2026 DUMPER-7 runtime dump (UnityEngine.CoreModule/UnityEngine/Gradient.h).
|
|
namespace RR::Methods::UnityGradient {
|
|
uintptr_t SetKeys = 0x9987030; // void SetKeys(GradientColorKey[], GradientAlphaKey[])
|
|
uintptr_t get_colorKeys = 0x9987110; // GradientColorKey[] get_colorKeys()
|
|
uintptr_t get_alphaKeys = 0x99870D0; // GradientAlphaKey[] get_alphaKeys()
|
|
}
|
|
|
|
// RRUI.UIGradient - Rec Room's MonoBehaviour that wraps a Unity Gradient for rendering. Hooking
|
|
// the setter lets us swap Rec Room's orange 4-stop ramp for the Campus purple/magenta/orange/gold
|
|
// ramp on EVERY UI element that ever gets a gradient assigned.
|
|
namespace RR::Methods::UIGradient {
|
|
uintptr_t set_Gradient = 0x8BFA6A0; // void set_Gradient(UnityEngine.Gradient)
|
|
}
|