Add 'Clear Recently Played.pak' to all platforms#674
Open
matthewvaishnav wants to merge 2 commits intoLoveRetro:mainfrom
Open
Add 'Clear Recently Played.pak' to all platforms#674matthewvaishnav wants to merge 2 commits intoLoveRetro:mainfrom
matthewvaishnav wants to merge 2 commits intoLoveRetro:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey there, I've recently been enjoying NextUI a ton with my Trimui Brick and wanted to contribute to the project in any way I could!
Implements the add Clear Recently Played.pak, copy to all platforms item from todo.txt.
Basically just added a one-tap tool under the Tools menu that clears the recently played list by deleting $SDCARD_PATH/.userdata/shared/.minui/recent.txt. The file is defined as RECENT_PATH inside of defines.h and is written by nextui during every game launch.
While implementing, I traced RECENT_PATH through defines.h -> nextui.c to confirm delete is the correct option (nextui recreates the file fresh on next launch, so there is no risk of corruption).
Also used [ -f ] guard so the pak is safe to run, even if/when the list is already empty.
tg5040/5050 now calls show2.elf --mode=simple as a brief confirmation message, which matches the pattern used in Remove Loading.pak. desktop exits silently, show2.elf is not available in the desktop environment.
I did NOT implement a confirmation prompt. Todo.txt notes the confirm/show.elf redesign is still pending, so that's intentionally left for that work.
Files changed:
skeleton/EXTRAS/Tools/tg5040/Clear Recently Played.pak/launch.sh (new)
skeleton/EXTRAS/Tools/tg5050/Clear Recently Played.pak/launch.sh (new)
skeleton/EXTRAS/Tools/desktop/Clear Recently Played.pak/launch.sh (new)