Skip to content

Large Code Cleanup - #41

Open
QuzarDC wants to merge 38 commits into
piratesephiroth:mainfrom
QuzarDC:Quzar_Cleanups
Open

Large Code Cleanup#41
QuzarDC wants to merge 38 commits into
piratesephiroth:mainfrom
QuzarDC:Quzar_Cleanups

Conversation

@QuzarDC

@QuzarDC QuzarDC commented Jan 28, 2024

Copy link
Copy Markdown

Hi! I'd used your tool in setting up injections on my WiiU and thought I might help out with some cleanups. I tried to make the commits fairly atomic so that they could be actually reviewable. Most of it is refactoring and condensing the code (attempting to de-'SUPER CRAPPY' it). Along the way also fixed some bugs:

  1. Fix exception on error if temp folder missing (happens if two instances are opened)
  2. Fix banner source setting to allow individually replacing banner or icon while using the other from repo.
  3. Icon and banner text is now set back to red when changing game type modes.
  4. Correct text for boot logo not specified which would previously get set to 'Gamepad Banner not specified'
  5. Corrected the behavior of many advanced options that were not enabling/disabling in all transition possibilities.

Some of the big non-bug changes:

  1. Added libTGA to reduce external tools dependencies
  2. Moved all advanced option UI labels into panels for future cleanup/streamlining
  3. AnCast Key entry/button only appears now when the c2w option is selected.

Donald Haase added 30 commits January 14, 2024 19:31
…Source. Every code path below it had those values overwritten before being read
…ased on IconSource. The intent seems to be to clear both if they had been previously populated from a repo
…r out existing repo-based images when adding custom ones, but that was both broken and doesn't make sense. It should be possible to replace individual images ad-hoc and there's no need to clear the variables directly before overwriting them.
…ce the popup to show up always on top. This shouldn't be neccessary at all.
…er in favor of testing the image previewbox. Ensure the text is set back to red when cleanup is performed.
… used for all images. Refactor the image loading to use a common function. Do away with global flags for testing if images have been loaded, and test the previewbox instead.
…se the ImageSourceLoad subfunction like the buttons, which should facilitate moving to a native tga saving.
…llow easier disabling of all options in the set rather than doing so individually.
Donald Haase added 8 commits January 19, 2024 18:43
…ey haven't been done yet already. Use the readonly status of the key elements as the flag for if they are good or not.
…path UI element isn't being used as a scratchpad. Also remove the unnecessary initial settings of its contents.
…RepoDownload, disable RepoDownload button from start, invert logic in the systype radio buttons and make a shared common settings subfunction.
… to Hashes into a common function with the HashTest
…irst and possible second specified disc. Clean up the fail states for the build process to always clean up properly
…h Nintendont options. Correct alignments and overlaps in Advanced tab. Reduce c2w patcher label to a single element.
…n the checkmark is checked. Default elements to disabled, which would be disabled if switching to the Wii retail tab. Add borders around panels.
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.

1 participant