Skip to content

Commit

Permalink
Add addresses to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Jul 14, 2023
1 parent f87deb5 commit 66aefe9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ninja

This repository contains the source code of the Ninja extension for Gothic 1 and Gothic 2 NotR.
This repository contains the source code of the Ninja extension for Gothic, Gothic Sequel, and Gothic 2 NotR.

If you are interested in developing patches with Ninja, please follow the instructions in the relevant chapters of the
[documentation](https://github.com/szapp/Ninja/wiki).
Expand Down
3 changes: 3 additions & 0 deletions getBinList.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ COPY /Y NUL "%outfile%" >NUL
SET gothic=1
FOR %%N IN ("%indir%") DO CALL :fileloop %%N || EXIT /B 3
ECHO/>> %outfile%
SET gothic=112
FOR %%N IN ("%indir%") DO CALL :fileloop %%N || EXIT /B 3
ECHO/>> %outfile%
SET gothic=2
FOR %%N IN ("%indir%") DO CALL :fileloop %%N || EXIT /B 3

Expand Down
2 changes: 1 addition & 1 deletion src/func/allowRedefine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ninja_allowRedefine:
push eax

mov eax, [esp+stackoffset+arg_1]
mov eax, [eax+g1g2(0x10A4,0,0x20A4)] ; parser->line
mov eax, [eax+g1g2(0x10A4,0x10A4,0x20A4)] ; parser->line
push 0xA
push ecx
push eax
Expand Down
4 changes: 2 additions & 2 deletions src/func/armParser.asm
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ninja_armParser:
push eax
mov eax, DWORD [zCParser__ParseBlock+4]
push eax
mov DWORD [zCParser__ParseBlock], g1g2(0xC868FF6A,0,0x0868FF6A)
mov DWORD [zCParser__ParseBlock+4], g1g2(0x64007C4A,0,0x640082A6)
mov DWORD [zCParser__ParseBlock], g1g2(0xC868FF6A,0x1868FF6A,0x0868FF6A)
mov DWORD [zCParser__ParseBlock+4], g1g2(0x64007C4A,0x6400807C,0x640082A6)

mov eax, DWORD [zCParser__cur_parser]
push eax
Expand Down

0 comments on commit 66aefe9

Please sign in to comment.