DS-Homebrew / TWiLightMenu

DSi Menu replacement for DS/DSi/3DS/2DS
https://wiki.ds-homebrew.com/twilightmenu/
GNU General Public License v3.0
3.15k stars 197 forks source link

Incorrect/corrupt save location when launching any DS software after any DSiWare (or vice-versa) #2432

Closed gnesthenic closed 2 weeks ago

gnesthenic commented 2 weeks ago

Game Console(s) used

Launch Method

Launched via SD card TWLMenu++ v27.5.0 Nintendo DSi firmware Ver 1.4J

Version used

nds-bootstrap Ver. Release v1.5.2

Game tested/used/applicable

Expected Behavior

When launching DS software after any other software, the savPath should be the filename of the DS software but with the .sav filetype instead of .nds: image

When launching DSiWare after any other software, the savPath should be the filename of the DSiWare but with the .pub filetype instead of .nds: image

Actual Behavior

When launching DS software after DSiWare, the savPath is seemingly corrupted: image This leads to existing save files not loading, and a fearful player thinking their progress was deleted.

When launching DSiWare after DS software, the savPath has an incorrect .sav filetype, and according to the log files may also be corrupted: image This leads to a crash.

Steps to reproduce

nds-bootstrap.ini

The strange-looking SAV_PATH value is copied verbatim and seems to be part of the problem.

DONORTWLONLY0_NDS_PATH = nand:/title/00030005/484e4b45/content/00000002.app
USE_ROM_REGION = 1
DEBUG = 1
LOGGING = 1
B4DS_MODE = 0
ROMREAD_LED = 0
DMA_ROMREAD_LED = -1
PRECISE_VOLUME_CONTROL = 0
SDNAND = 1
MACRO_MODE = 0
SLEEP_MODE = 1
SOUND_FREQ = 1
CONSOLE_MODEL = 0
HOTKEY = 284
NDS_PATH = sd:/games/Picross 3D (USA) (En,Fr,Es).nds
SAV_PATH = sd:/_NDS/TWILIG~1/SAVES/  g��X�X
7��6
7X�6
7X�6
7X�6
AP_FIX_PATH =
RAM_DRIVE_PATH = sd:/null.img
GUI_LANGUAGE = en
LANGUAGE = 1
REGION = 1
DSI_MODE = 1
BOOST_CPU = 1
BOOST_VRAM = 1
CARD_READ_DMA = 1
ASYNC_CARD_READ = 0
DONOR_SDK_VER = 5
PATCH_MPU_REGION = 0
PATCH_MPU_SIZE = 0
FORCE_SLEEP_PATCH = 0
APP_PATH = sd:/GAMES/PICROS~1.NDS
PRV_PATH = sd:/_NDS/TWILIG~1/SAVES/  nds
GAME_SOFT_RESET = 1

Logs

Launching Picross 3D (DS) after Cave Story (DSiWare): NDSBTSRP.LOG

Launching Cave Story (DsiWare) after Picross 3D (DS): NDSBTSRP.LOG

Other notes

No response

Will you be available for future issues and/or replies?

Yes

RocketRobz commented 2 weeks ago

Transferred the issue, as it's due to how TWLMenu++ writes the save path(s). Which theme are you using in TWLMenu++?

gnesthenic commented 2 weeks ago

Which theme are you using in TWLMenu++?

Nintendo DSi theme. The screenshots above are from a low-quality video that I just took launching some software, I can post it if you like.

Also:

RocketRobz commented 2 weeks ago

Which sorting method is set in TWLMenu++ Settings?

gnesthenic commented 2 weeks ago

Which sorting method is set in TWLMenu++ Settings?

Recently played. I'm a big fan of this sorting method after the recent fix to the cursor location. I can post the contents of settings.ini if you like.

RocketRobz commented 2 weeks ago

Which sorting method is set in TWLMenu++ Settings?

Recently played. I'm a big fan of this sorting method after the recent fix to the cursor location. I can post the contents of settings.ini if you like.

Nope, that's all I needed. Try switching the sort method back to the default setting.

gnesthenic commented 2 weeks ago

Which sorting method is set in TWLMenu++ Settings?

Recently played. I'm a big fan of this sorting method after the recent fix to the cursor location. I can post the contents of settings.ini if you like.

Nope, that's all I needed. Try switching the sort method back to the default setting.

The issue does not appear to exist when sorting by Alphabetical! Also maybe important: I have set DSiWare to be launched via nds-bootstrap in the TWLMenu++ settings because I like having the save location be separate from the rom location.