From 4daffd4d8314235fb446dbdc70393e098dd8b7ab Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:19:22 +0800 Subject: [PATCH] [saco] Implement CallRwRenderStateSet, CallRwRenderStateGet --- saco/main.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/saco/main.cpp b/saco/main.cpp index 8598701..8907b7d 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -167,6 +167,30 @@ void SetupDirectories() //---------------------------------------------------- +void CallRwRenderStateSet(int state, int option) +{ + _asm push option + _asm push state + _asm mov ebx, 0xC97B24 + _asm mov eax, [ebx] + _asm call dword ptr [eax+32] + _asm add esp, 8 +} + +//---------------------------------------------------- + +void CallRwRenderStateGet(int state, int *option) +{ + _asm push option + _asm push state + _asm mov ebx, 0xC97B24 + _asm mov eax, [ebx] + _asm call dword ptr [eax+36] + _asm add esp, 8 +} + +//---------------------------------------------------- + void TheGraphicsLoop() { }