Skip to content

Conversation

ManiacOfGitHub
Copy link
Contributor

@ManiacOfGitHub ManiacOfGitHub commented Jul 26, 2025

Very work-in-progress
This pull requests seeks to rewrite pretty much the entire script in Lua, which has several new benefits over using the legacy gm9script. Here are the new features that are planned to be added so far:

  • All features from the old script ported over to Lua
  • Optional config menu that lets you change stuff, like what apps get installed, whether a nand backup is made, whether exploit files are deleted, etc.
  • Optionally, place a config.json file inside a folder named "finalize" to change even more stuff (especially intended for those who mod a lot of consoles for whatever reason)
  • Framework for translation support by placing all strings within a JSON file, Crowdin support might be added within a separate PR
  • Nullify user time offset and then check RTC (can be disabled inside config)
  • Dump DSP firmware (can be skipped via config, but like... why)
  • Remove menuhax67 (we have access to the config savegame after all) (can be disabled alongside the mset9 detection manually within config.json)

@ihaveamac
Copy link
Member

There is a partially completed Lua rewrite on the lua-test branch: https://github.com/hacks-guide/finalize/tree/lua-test

This has additional changes, namely merging finalize and finalizing-helper into one FIRM. There is no more need to split it into separate pre-setup and setup scripts now that Lua can check for things like embedded backup and RTC.

@ManiacOfGitHub
Copy link
Contributor Author

This has additional changes, namely merging finalize and finalizing-helper into one FIRM. There is no more need to split it into separate pre-setup and setup scripts now that Lua can check for things like embedded backup and RTC.

Yeah, I did that already in my first commit. What I did not do is move the romfs hash to its own file (makes sense, I'll probably do that) and enable AUTO_UNLOCK (I think I want a second opinion before I do that)

@ManiacOfGitHub
Copy link
Contributor Author

enable AUTO_UNLOCK (I think I want a second opinion before I do that)

Update: I have added AUTO_UNLOCK. Ideally, I just get rid of the write protection system for level 1 altogether, but I'm guessing it's not a good idea to modify GodMode9's source code for this, so AUTO_UNLOCK will probably have to suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants