"Delete Game Data" deletes everything in the Data folder when game's bundleID is missing

Hi, I just experienced a possible bug where when I tried to "Delete Game Data" of just one game, it deleted the entire contents of /Data, including all the saved data of my other games! (I will definitely start doing regular backups from now on :sweat_smile:)

I've been able to reproduce the issue like so:

  1. Install a game via USB that doesn't have a bundleID in its pdxinfo file (the forum won't let me link to the specific game this happened to me with, but I assume any game with a missing bundleID will behave the same - note that the pdxinfo file does have a bundleID= line but nothing after the equals sign)
  2. Navigate to the game in Settings > Games on the Playdate.
  3. Note that "Game Data" will show the file size of everything in your Data folder.
  4. If you select "Delete Game Data", it will delete everything in your Data folder.

I understand that a missing bundleID is considered invalid (and it sounds like other methods of sideloading don't work without a bundleID), but I think it would be ideal to handle this case less destructively, especially since it sounds like broken bundleIDs tend to come up a lot during game jams.

2 Likes

oh yikes, that's a problem. Thanks so much for catching that! I'll get a fix in now :pray:

2 Likes

(I've also set your account to "member" level, hopefully that'll keep the system from blocking posts with links. Let me know if you have any more trouble with that!)