Skip to content

Add 'Clear Recently Played.pak' to all platforms#674

Open
matthewvaishnav wants to merge 2 commits intoLoveRetro:mainfrom
matthewvaishnav:feat/clear-recently-played-pak
Open

Add 'Clear Recently Played.pak' to all platforms#674
matthewvaishnav wants to merge 2 commits intoLoveRetro:mainfrom
matthewvaishnav:feat/clear-recently-played-pak

Conversation

@matthewvaishnav
Copy link

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)

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