Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.1 #8

Merged
merged 29 commits into from
Apr 12, 2018
Merged

Release 1.1 #8

merged 29 commits into from
Apr 12, 2018

Conversation

noirscape
Copy link
Owner

@noirscape noirscape commented Apr 12, 2018

Not a lot of end-user changes, but a lot of rework under the hood.

End user changes:

  • Closes Doesn't support cartridge versions of SMR #1 (no gamecard support). Thanks to astronautlevel for the bug report and Sonlen for testing my fixes. If a gamecard is found, it is chosen over any local installation.
  • Closes Doesn't support region mismatched versions #2 (no support for mismatched regions). Thanks to astronautlevel for this bug report. You are now prompted if the program detects multiple regions. If there is only one region, it is autodetected and you are not prompted.
  • Closes Errors if trying to unlock a not-existing save file. #4 (no support for missing save files). The program only allows you to choose existing save files. If there is only one save file, it is autodetected and you are not prompted to select a save file.
  • Restart functionality! You can at any point now press the L button to restart the entire process. Useful if you selected the wrong save file or region.
  • Savedata readouts! After selecting a save file, the program now reads out the current state of the save file and shows it on the bottom left screen.
  • Cleaner interface! The main text prompts by the program are now dedicated on the top screen. The bottom screen now contains a list of save data info on the left and a list of your choices made in the program on the right (this include autodetection).

Under the hood changes:

  • Loads and loads. Really, I've rewritten about 90% of the program logic except for the ctrulib function calls themselves.
  • No more if blocks. The entirety of the state machine is now handled with a switch.
  • Got rid of editprofile.c completely and split it up into various functions inside save.c with lowid selection getting moved to title.c.
  • Dedicated failure state that is separate from SUCCES state.

ev1l0rd added 28 commits April 8, 2018 23:11
Checks don't do anything yet aside from displaying warnings.
switch = more adaptable for later + this code was making me annoyed.
Also fixed a minor issue where if you had two regions, you could also
select the third region, even if you didnt have it installed.
Split up edit_profile.c into save.c
Also added consoleClear()s for every state change on the top screen.

Tried to outline bottom screen messages a bit better to account for less
screen space.
that printf shouldve been called only once 😅

Also moved the window clean step _after_ the reset since it was messing
with the main menu.
Add restart functionality + Screen wiping
@noirscape
Copy link
Owner Author

noirscape commented Apr 12, 2018

Will merge after getting confirmation that it works for #1 .

UPDATE: Works. Will merge after cleaning up README.md/removing an unused (commented) code line from the source files.

@noirscape noirscape merged commit bff47a6 into master Apr 12, 2018
noirscape pushed a commit that referenced this pull request Apr 12, 2018
* Using the enum properly.

* Initial case of card and region checks

Checks don't do anything yet aside from displaying warnings.

* TWL/CTR card checking

* Switch to using bools over ints

* Added region autodetect, header guarding and moved structs to their own
file.

* Using a switch instead of the if blocks

switch = more adaptable for later + this code was making me annoyed.

* Prompt for multiple regions found

* Removed pointless functions, fixed incorrect prompt and did general code
reformatting.

(main.h is now pointless)

* More robust text prompts for later modifications

* Adjust FS_MediaType in editprofile.c to actually be able to read from
the gamecard

* Added more gamecard changes to editprofile.c that I missed.

Also fixed a minor issue where if you had two regions, you could also
select the third region, even if you didnt have it installed.

* Ternary operator for checking

* Initial work on splitting up for save detection

* Savedata checking in much the same manner as checking for dupe copies.

* Added savedata readouts (not very well optimized)

* Moved closing everything to its own function in save.c

* Split up final parts

* Print selection info to the bottom screen instead of the top screen.

* Resolves an unbroken switch statement + removed a pointless parameter.

* Added back functionality to the L button and fixed a minor print fail
for save info

* Clean out print statements from source files other than main.c

Also added consoleClear()s for every state change on the top screen.

Tried to outline bottom screen messages a bit better to account for less
screen space.

* Added new failure state to account for failures w/ the new screen clean
function.

* ohgodwhat

that printf shouldve been called only once 😅

Also moved the window clean step _after_ the reset since it was messing
with the main menu.

* Handle an edge case where someone presses L on MAIN_SCREEN

* Preventing fallthrough of FAILURE state

* License headers added, removed Known Issues and thanked @Sonlen1414
for beta testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant