Skip to content

Commit

Permalink
Update EET/lib/macros.tph
Browse files Browse the repository at this point in the history
minor optimization
  • Loading branch information
K4thos committed Nov 1, 2018
1 parent c1bfa80 commit 63dffbc
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions EET/lib/macros.tph
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,13 @@ DEFINE_PATCH_FUNCTION ~EET_expand_tlk~
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
SET offset = ("%actors_emb_off%"+"%fx_off%"+0x108*cnt2+0x58)
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
READ_LONG ("%actors_emb_off%"+"%fx_off%"+0x108*cnt2+0x18) "display_type"
PATCH_IF (display_type = 1) BEGIN //Cynicism
SET offset = ("%actors_emb_off%"+"%fx_off%"+0x108*cnt2+0x58)
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
END
END
END
END
Expand Down Expand Up @@ -749,10 +752,13 @@ DEFINE_PATCH_FUNCTION ~EET_expand_tlk~
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
SET offset = ("%fx_off%"+0x108*cnt+0x58)
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
READ_LONG ("%fx_off%"+0x108*cnt+0x18) "display_type"
PATCH_IF (display_type = 1) BEGIN //Cynicism
SET offset = ("%fx_off%"+0x108*cnt+0x58)
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
END
END
END
END
Expand Down Expand Up @@ -798,10 +804,13 @@ DEFINE_PATCH_FUNCTION ~EET_expand_tlk~
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
SET offset = 0x60
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
READ_LONG 0x20 "display_type"
PATCH_IF (display_type = 1) BEGIN //Cynicism
SET offset = 0x60
READ_LONG offset "strref"
LPM EET_expand_str
WRITE_LONG offset "%str%"
END
END
//ITM
END ELSE PATCH_IF (~%SOURCE_EXT%~ STR_EQ ~itm~) BEGIN
Expand Down

0 comments on commit 63dffbc

Please sign in to comment.