Name all sacred.exe addresses in src/game/addresses.h
Hooks now refer to addr::* instead of literal addresses; the header also lists the world view's users of the 1024.0/768.0 constants and the ortho projection extent pushes for the widescreen work. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b2dc1338d2
commit
c8dc689bc6
4 files changed
+56
-6
No files matched your search
@@ -33,6 +33,7 @@
|
||||
#include "game/engine/input.h"
|
||||
#include "game/render/dx_driver7.h"
|
||||
#include "re/config.h"
|
||||
#include "game/addresses.h"
|
||||
#include "re/hook.h"
|
||||
#include "re/log.h"
|
||||
|
||||
@@ -138,10 +139,10 @@ bool IsMouseMessageWithClientCoords(UINT message) {
|
||||
|
||||
namespace game {
|
||||
|
||||
RE_HOOK(0x00645390, DxDriver7_SetDisplayMode);
|
||||
RE_HOOK(0x00645f70, DxDriver7_Flip);
|
||||
RE_HOOK(0x0066e500, GetMouseClientPos);
|
||||
RE_HOOK(0x008122a0, MainWindowProc);
|
||||
RE_HOOK(addr::DxDriver7_SetDisplayMode, DxDriver7_SetDisplayMode);
|
||||
RE_HOOK(addr::DxDriver7_Flip, DxDriver7_Flip);
|
||||
RE_HOOK(addr::GetMouseClientPos, GetMouseClientPos);
|
||||
RE_HOOK(addr::MainWindowProc, MainWindowProc);
|
||||
|
||||
int __fastcall DxDriver7_SetDisplayMode(DxDriver7* self, void* edx, void* deviceCaps, const DxDisplayMode* mode,
|
||||
uint32_t unknown) {
|
||||
|
||||
Reference in new issue
Block a user