Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python patcher compatibility #100

Merged
merged 14 commits into from
Nov 12, 2024
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ section.cpp
*.til
*.nam

.vscode
.vscode

section.ld
section/main.cpp
section/main.cxx
5 changes: 0 additions & 5 deletions config.txt

This file was deleted.

7 changes: 1 addition & 6 deletions hooks/HFAExtLoad.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#include "../define.h"
asm(
".section h0; .set h0,0xA8EF63;"
"JMP "QU(FAExtLoad)";"

#ifdef STARTUP
".section h1; .set h1,0x45A926;"
"push eax;"
"call "QU(STARTUP)";"
"call "QU(InitCtors)";"
"pop eax;"
"ret 8;"
#endif
);
10 changes: 5 additions & 5 deletions hooks/LuaFuncRegs.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../define.h"
asm(
".section h0; .set h0,0xC0FA60;"
".int "QU(LuaFuncsReg)";"
);
// #include "../define.h"
4z0t marked this conversation as resolved.
Show resolved Hide resolved
// asm(
// ".section h0; .set h0,0xC0FA60;"
// ".int "QU(LuaFuncsReg)";"
// );
2 changes: 1 addition & 1 deletion section/include/CObject.h → include/CObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Result<CScriptClass> GetCScriptObject(lua_State *l, int index)
{
using CScriptType = typename CScriptClass::Type;
using TResult = Result<CScriptClass>;
void **obj = GetCObject(l, index);
void **obj = reinterpret_cast<void**>(GetCObject(l, index));
if (obj == nullptr)
{
return TResult::Fail(s_ExpectedAGameObject);
Expand Down
Loading
Loading