d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.12k stars 191 forks source link

Improve DSiWare save generation #761

Closed Epicpkmn11 closed 2 years ago

Epicpkmn11 commented 2 years ago

The sector/track/head count calculation for DSiWare saves was a bit off resulting in some DSiWare refusing to boot because the save 'didn't have enough room' or such. If you want to test, Dragon Quest Wars (EUR) is one game that was broken, theoretically any game with a 32 KiB save (or like half the other sizes) should be broken but most probably don't bother checking.

I've tested this calculation against all 25 sizes that TWiLight Menu++ has (it has hardcoded template files at the moment) and everything seems to generate correctly with this change.

d0k3 commented 2 years ago

Merged, thanks a lot for this!