Skip to content

Commit

Permalink
Introduce compatibility with the Python-based patcher (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored Nov 12, 2024
1 parent dc0bf00 commit 64368d9
Show file tree
Hide file tree
Showing 48 changed files with 3,430 additions and 3,543 deletions.
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
);
5 changes: 0 additions & 5 deletions hooks/LuaFuncRegs.cpp

This file was deleted.

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

0 comments on commit 64368d9

Please sign in to comment.