-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support latest update (Trails series)
- Loading branch information
1 parent
cbf599a
commit 5d4e469
Showing
12 changed files
with
475 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#include "asm/asm.h" | ||
#include "bridge/bridge.h" | ||
#include "global/global.h" | ||
|
||
__declspec(naked) void asm_titsl::text() { | ||
__asm { | ||
jne short next | ||
pushad | ||
|
||
cmp dword ptr[global.info.game], GameTitsFC | ||
je short fc | ||
push edi | ||
jmp common | ||
|
||
fc: | ||
push ebx | ||
|
||
common: | ||
call bridge::Play | ||
|
||
popad | ||
jmp dword ptr[global.addrs.text_next] | ||
|
||
next : | ||
jmp dword ptr[global.addrs.text_jmp] | ||
} | ||
} | ||
|
||
__declspec(naked) void asm_titsl::ldat() { | ||
__asm { | ||
call bridge::LoadDat | ||
test eax, eax | ||
je short next | ||
ret | ||
|
||
next : | ||
jmp dword ptr[global.addrs.ldat_next]; | ||
} | ||
} | ||
|
||
__declspec(naked) void asm_titsl::dcdat() { | ||
__asm { | ||
push edi | ||
push ebx | ||
push 0 | ||
call bridge::DecompressDat | ||
add esp, 12 | ||
test eax, eax | ||
je short next | ||
ret | ||
|
||
next : | ||
jmp dword ptr[global.addrs.dcdat_next] | ||
} | ||
} | ||
|
||
__declspec(naked) void asm_titsl::textse() { | ||
__asm { | ||
cmp dword ptr[global.sigs.no_textse], 0 | ||
je short next | ||
cmp dword ptr[global.config.disable_text_se], 0 | ||
je short next | ||
jmp dword ptr[global.addrs.textse_jmp] | ||
|
||
next : | ||
jmp dword ptr[global.addrs.textse_next] | ||
} | ||
} | ||
|
||
__declspec(naked) void asm_titsl::dlgse() { | ||
__asm { | ||
cmp dword ptr[global.sigs.no_dlgse], 0 | ||
je short next | ||
mov dword ptr[global.sigs.no_dlgse], 0 | ||
cmp dword ptr[global.config.disable_dialog_se], 0 | ||
je short next | ||
|
||
pushad | ||
call bridge::Stop | ||
popad | ||
jmp dword ptr[global.addrs.dlgse_jmp] | ||
|
||
next : | ||
pushad | ||
call bridge::Stop | ||
popad | ||
jmp dword ptr[global.addrs.dlgse_next] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.