Skip to content

Commit

Permalink
Add mask1n's fix for shop loops to CSWT and CSTP
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkiwritescode committed Dec 7, 2024
1 parent 795960c commit 08d2d07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _modpacks/resources/cswt/cstppycsmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ def saveFiles(self, root, gameInstance, modList):
mainDol.write(b'\x38\x60\x00\x01')
mainDol.seek(mapper.boomToFileAddress(0x8020f91c))
mainDol.write(b'\x38\x60\x00\x01')
# fix shop loop bug
mainDol.seek(mapper.boomToFileAddress(0x8008f538))
mainDol.write(b'\x60\x00\x00\x00')

def saveUiMessages(self):
return {f'files/localize/ui_message.{k}.csv':
Expand Down
7 changes: 5 additions & 2 deletions _modpacks/resources/cswt/cswtpycsmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,15 @@ def saveFiles(self, root, gameInstance, modList):
mainDol.write(b'\x38\x60\x00\x01')
mainDol.seek(mapper.boomToFileAddress(0x8020f91c))
mainDol.write(b'\x38\x60\x00\x01')

# fix shop loop bug
mainDol.seek(mapper.boomToFileAddress(0x8008f538))
mainDol.write(b'\x60\x00\x00\x00')

def saveUiMessages(self):
return {f'files/localize/ui_message.{k}.csv':
(lambda root, gameInstance, modList, msgDict, toReplaceWith=v: replUiMessages(msgDict, UI_MSGS_ALL | toReplaceWith))
for k,v in UI_MSGS.items()}

def modifyArcFile(self):
localeToTitleArcFile = {
'ja': 'files/game/game_sequence_title.arc',
Expand Down

0 comments on commit 08d2d07

Please sign in to comment.