nds-bootstrap icon indicating copy to clipboard operation
nds-bootstrap copied to clipboard

Modified timestamp (for sav file) is automatically updated without being saved in the game

Open blueberryfigapricotrye opened this issue 3 years ago • 3 comments

Console Configuration: New Nintendo 3DS (v11.15.0-47) - Luma 10.2.1 TWiLight Menu++ Version: v23.4.0 TWiLight Menu++ Theme: Theme: Regular White DSi

Expected behaviour

For existing saves files, when starting a game no matter for which roms, the existing file (saves) should not automatically update the modified file timestamp. It should behave exactly like emulators on Windows or macOS. This means the modifed file timestamps for save files are not updated when the user only opens the game.

Actual behaviour

For example, when I open an existing NDS rom, the existing save file for the NDS rom is automatically updated. I don't like this behavior because I only have the rom open and generally not saved in the game.

Steps to reproduce

  1. File info: test.nds (Modified: 2008-03-04 09:37:04), test.sav (Modified: 2021-07-14 05:07:29)
  2. Copy rom and the existing sav file to SD card.
  3. Insert the SD card to 3DS.
  4. Now only start the game and do not save in the game.
  5. Connect the SD card to a Windows or macOS device and open the standard file manager.
  6. File info: test.nds (Modified: 2008-03-04 09:37:04), test.sav (Modified: 2022-01-21 03:00:08)

Note: Created timestamp I have also checked and here there are no problems.

blueberryfigapricotrye avatar Jan 21 '22 02:01 blueberryfigapricotrye

That's because it is not possible to change the modified date while in-game, without modifying the lib used for reading and writing files.

RocketRobz avatar Jan 21 '22 02:01 RocketRobz

That's because it is not possible to change the modified date while in-game, without modifying the lib used for reading and writing files.

Thanks for the quick feedback. This behavior I discovered with TWiLight Menu++ is exactly like the R4 cartridge from www.r4ids.cn.

Now I have tested mGBA 0.9.3 (3DS version) - https://mgba.io/downloads.html - for my GBA games and there is no problem.

Is there a way from your side to fix this problem?

blueberryfigapricotrye avatar Jan 21 '22 02:01 blueberryfigapricotrye

Would already be fixed, if I knew how. Unfortunately, I don't.

RocketRobz avatar Jan 21 '22 02:01 RocketRobz