Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DesiQuintans committed Mar 4, 2024
1 parent 0d9b90e commit c8a55b0
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distrib
temp
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ClearRecent - MinUI Tool Pak for editing the Recently Played list



## About

This is a collection of tool paks for [MinUI](https://github.com/shauninman/MinUI) (20240128b-0 and later). It adds these tools for editing the 'Recently Played' list of MinUI:

- **Delete newest entry** removes the most recent game from the list.
- **Wipe the list clean** deletes the entire list.



## Installation

1. You should have [MinUI](https://github.com/shauninman/MinUI) 20240128b-0 or later installed on your SD card.
2. Download [the latest release of ClearRecent](https://github.com/DesiQuintans/ClearRecent/releases/latest).
3. Unzip it to the root folder of your MinUI SD card. It should place an `Edit -Recently Played- List/` folders into your `Tools/miyoomini/` directory, e.g. `Tools/miyoomini/Edit -Recently Played- List/`.
- This should be compatible with other devices too. Just move the `Edit -Recently Played- List/` into the appropriate `Tools/{device}/` folder.
5. Find and use these tools in your *Tools* directory from the main menu, under the 'Edit -Recently Played- List' category.


If you do not see the *Tools* menu then you may be in Simple Mode; delete the file `/.userdata/shared/enable-simple-mode` to exit Simple Mode. If this file doesn't exist, then you may have extracted the files to the wrong place.



## License

This is released into the public domain under the Unlicense.



## Changelog

### v1.0.0 (2024-03-03)

- Initial release.
40 changes: 40 additions & 0 deletions _Deploy_toolpaks.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
echo off

REM ---------- Edit these variables as needed. --------------------------------

REM Set the collection name, which is used for the archive name.
set "setname=ClearRecent"

REM ---------- No user-editable variables below. ------------------------------

REM Ask for new version number, which is used to find-replace in files.
set /p ver="Enter a new version number: "



REM Copy target files to temporary folder.
if exist "temp\" rmdir "temp" /s /q
if not exist "temp\" mkdir "temp\"
robocopy src\ temp\ /s

REM Copy the readme up and rename it to .txt (because I've seen people
REM in the retro gaming community get confused expecting .md to be a MegaDrive ROM).
robocopy .\ temp\ README.md
rename temp\README.md "%setname%-README.txt"

REM Do the final zipping.
if not exist "distrib\" mkdir "distrib\"
if exist "distrib\%setname%-%ver%.zip" del distrib\%setname%-%ver%.zip
7z a -tzip -r- distrib\%setname%-%ver%.zip .\temp\*

REM Delete the temporary folder and announce success
REM Wait for a second to wait for the processes to finish.
timeout /t 2 /nobreak
if exist "temp\" rmdir "temp" /s /q

echo.
echo Version v%ver% of %setname% was built.
echo The distributable is at 'distrib/%etname%-%ver%.zip'.
echo.

PAUSE
Binary file added art/ClearRecent Splashes.xcf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

cd "$(dirname "$0")"
show=/mnt/SDCARD/.system/miyoomini/bin/show.elf
recentlist=/mnt/SDCARD/.userdata/shared/.minui/recent.txt

echo "$(tail -n +2 $recentlist)" > $recentlist
sync

$show ./splash.png
usleep 500000
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

cd "$(dirname "$0")"
show=/mnt/SDCARD/.system/miyoomini/bin/show.elf
recentlist=/mnt/SDCARD/.userdata/shared/.minui/recent.txt

rm -f $recentlist
sync

$show ./splash.png
usleep 500000
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8a55b0

Please sign in to comment.