mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
Add PC Port settings to legit start menu (#1217)
* decompiler: support adding new strings to the game_text.txt file * gsrc: expand the pckernel type and functions to work better with the menu * gsrc: add new text-ids * gsrc: add new macros to help with menu code * gsrc: make a new type to generalize their list menu options * gsrc: add new menu options and enums * gsrc: cleanup and refactor the list menu option drawing code this allows us to easily add a new list menu option...well as easy as the rest is atleast (setting up static lists properly, etc) * gsrc: add and cleanup handling of new menu options * scripts: add checks with nice error messages for user facing taskfile recipes * lint: formatting * address simple feedback * gsrc: move modified files to `pc/` folder * gsrc: revert changes to originally decompiled files * gsrc: move modified and new files to `goal_src/pc` folder * gsrc: update paths in `all_files.gc`
This commit is contained in:
@@ -7,3 +7,4 @@ vars:
|
||||
MEMDUMP_BIN_RELEASE_DIR: './build/tools'
|
||||
OFFLINETEST_BIN_RELEASE_DIR: './build'
|
||||
GOALCTEST_BIN_RELEASE_DIR: './build'
|
||||
EXE_FILE_EXTENSION: ''
|
||||
|
||||
@@ -7,3 +7,4 @@ vars:
|
||||
MEMDUMP_BIN_RELEASE_DIR: './build/tools'
|
||||
OFFLINETEST_BIN_RELEASE_DIR: './build'
|
||||
GOALCTEST_BIN_RELEASE_DIR: './build'
|
||||
EXE_FILE_EXTENSION: ''
|
||||
|
||||
@@ -7,3 +7,4 @@ vars:
|
||||
MEMDUMP_BIN_RELEASE_DIR: './out/build/Release/bin'
|
||||
OFFLINETEST_BIN_RELEASE_DIR: './out/build/Release/bin'
|
||||
GOALCTEST_BIN_RELEASE_DIR: './out/build/Release/bin'
|
||||
EXE_FILE_EXTENSION: '.exe'
|
||||
|
||||
@@ -38,5 +38,24 @@ with open('goal_src/engine/ui/text-h.gc') as f:
|
||||
os.remove('goal_src/engine/ui/text-h.gc')
|
||||
with open('goal_src/engine/ui/text-h.gc', "w") as f:
|
||||
f.writelines(new_texth_lines)
|
||||
with open('goal_src/engine/pc/ui/text-h.gc') as f:
|
||||
lines = f.readlines()
|
||||
found_enum = False
|
||||
for line in lines:
|
||||
if begin_str in line:
|
||||
found_enum = True
|
||||
new_texth_lines.append(begin_str + "\n")
|
||||
new_texth_lines += enum_lines
|
||||
new_texth_lines.append(end_str + "\n")
|
||||
continue
|
||||
if end_str in line:
|
||||
found_enum = False
|
||||
continue
|
||||
if found_enum:
|
||||
continue
|
||||
new_texth_lines.append(line)
|
||||
os.remove('goal_src/engine/pc/ui/text-h.gc')
|
||||
with open('goal_src/engine/pc/ui/text-h.gc', "w") as f:
|
||||
f.writelines(new_texth_lines)
|
||||
print("game-text-id enum updated!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user