hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.22k stars 2.17k forks source link

Add nomedia flags to PPSSPP Homebrew Store titles #17711

Closed Jaffacakelover closed 1 year ago

Jaffacakelover commented 1 year ago

What should happen

When a game is installed from the PPSSPP Homebrew Store, several of the titles add their images into the Android Gallery. A minor annoyance; could this be fixed by adding a .nomedia file into the pack's image directories?

Title Gallery files?* PPSSPP.dl?**
Cave Story No No
Ozone No Yes
Kosmodrones No No
Webfest No Yes
Battlegrounds 3 No Yes
Mega Drops No Yes
Mega Drops 2 No Yes
PSP-Flower No No
rROOTAGE Yes No
Yellow Rose of Texas No No
Planet Hively No No
Suicide Barbie No Yes
Trigonometry Wars Yes No
Chuckie Egg No No
Breakout Yes No
Attack of the Mutants Yes No
LameCraft Mod 0.8 Yes No
Psp Revolution 0.3a Yes No

* Adds image files in a game-specific folder ** Adds /Internal storage/PPSSPP/PPSSPP.dl

Who would this benefit

Android users.

Platform (if relevant)

Android

Games this would be useful in

Ozone, Webfest, Battlegrounds 3, Mega Drops, Mega Drops 2, rROOTAGE, Suicide Barbie, Trigonometry Wars, Breakout, Attack of the Mutants, LameCraft Mod 0.8, Psp Revolution 0.3a

Other emulators or software with a similar feature

No response

Checklist

hrydgard commented 1 year ago

Yes, this we should absolutely do. Though, .nomedia are recursive, or at least should be. So putting one in /PSP/GAME might be enough?

Jaffacakelover commented 1 year ago

Yes, that would catch everything except PPSSPP.dl.

I've also done a quick check, and I'm glad that texture dumping doesn't add hundreds of files to the Gallery!

hrydgard commented 1 year ago

Oh, the download temp file? That one shouldn't be much of an issue, should it?

Deka710 commented 1 year ago

yeah i had to create .nomedia file on android to prevent texture pack flooded my gallery

Deka710 commented 1 year ago

like this Screenshot_2023-07-14-15-08-08-162_com mi android globalFileexplorer

hrydgard commented 1 year ago

I'm gonna make it auto-create one inside the PSP directory directly. I don't think you ever want media scanners anywhere in there...

hrydgard commented 1 year ago

Unknown made a good point that users might want the screenshots directory to show up. So I've simply made sure we create .nomedia files in a few more directories instead in an upcoming PR.

If someone is missing screenshots in their gallery, just delete /PSP/.nomedia.