nuhrin / pandafe

"Universal" SDL frontend for Pandora
GNU General Public License v3.0
5 stars 0 forks source link

app-id-type: prefix doesn't match program definition file but instead opens its "._" sidecar file (Apple Double file on FAT/ExFAT SD card) #41

Open porg opened 1 year ago

porg commented 1 year ago

Bug

How Pandafe's platform + program definition files work by design

In a platform definition file like /your-sd-card/pandora/appdata/pandafe/Platform/playstation the lines:

programs:
- pcsx_rearmed.notaz
default-program: pcsx_rearmed.notaz

refer to the program definition file /your-sd-card/pandora/appdata/pandafe/data/Program/pcsx_rearmed.notaz whose lines:

app-id-type: prefix
app-id: pcsx_rearmed.notaz

ensure that this PND reference will still work also when you upgrade a PND like PCSX ReARMed:

What are Apple double files? Essentially file.txt + ._file.txt (sidecar file)

Proposed Fix

Workaround for Mac users: Clean invisible Mac Metadata files before unmounting your SD card

To see what Apple Double files you have on your SD card run this on your Mac Terminal:

find /Volumes/your-sd-card-name/ -name '.DS_Store' -print -or -name '._*' -print

In my case I had:

/Volumes/my-sd-card-name/pandora/appdata/pandafe/Program/._pcsx_rearmed.notaz

Which got taken instead of the real program definition file:

/Volumes/my-sd-card-name/pandora/appdata/pandafe/Program/pcsx_rearmed.notaz

To delete all invisible Mac metadata files from your SD card:

  1. Close all Finder windows which have the SD card or any of its sub-folders open.

  2. Close all apps which may have folders/files od that SD card open.

  3. Now that nothing accesses the SD card anymore, scrub it from invisible Mac metadata files:

    find /Volumes/your-sd-card-name/ -name '.DS_Store' -print -exec rm {} \; -or -name '._*' -print -exec rm {} \;
  4. Unmount the SD card from your Mac.

  5. Physically eject the SD card and put it into your Pandora.