Views: 1,846,224 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 04-11-21 03:08 PM

0 users reading Request - SRL ROM file compatibility | 1 bot

Main - Development - Request - SRL ROM file compatibility New reply

Posted on 03-26-20 06:22 PM Link | #1571
I was able to dump some NDS games, like Mario Kart DS, from a Wii U.
However those games are in SRL file format.
Could you make this file format playable in melonDS.
This file format is working in DeSmuME so maybe you can look at them code.


Posted on 03-26-20 06:23 PM Link | #1572
SRL files are the same format as NDS files, they just have a different extension.

melonDS should list .srl files in its ROM open dialog. if not, you can always change the extension.


Posted on 03-27-20 09:10 AM (rev. 4 of 03-27-20 11:18 AM) Link | #1573
I tried to change the extension but the game was stuck on blank screen (not loading at all).
However it was working fine in DeSmuME.

I was able to make SRL game work in melonDS :
Step 1 (Optional) - If you want, rename the .srl ROM it to .nds.
Step 2 Uncheck the "Boot game directly" option in "Emu settings" menu.
Step 3 (Optional) - Load the .srl in melonDS trough drag n drop or "Open ROM" menu.
Step 4 - Enjoy !

In DeSmuME, it will work even if the game isn't launched trough firmware :
"Boot from firmware (like the NDS)" option could be checked or unchecked and the game will work.

I think it's because DeSmuME have native compatibility with SRL files but not melonDS.
So melonDS need to launch the game trough the NDS firmware.

Posted on 03-28-20 10:55 AM Link | #1576
that doesn't make much sense, SRL files are the same format as NDS files. there's something weird going on there. I'm gonna contact you via PM to work this out.


Posted on 03-30-20 04:38 AM (rev. 2 of 03-30-20 04:41 AM) Link | #1586
mh, I see

there's something up with the secure area

yeah, that is it. the secure area is encrypted, which is problematic during a direct boot. the ROM works fine when doing a full firmware boot.


Posted on 03-31-20 10:18 AM (rev. 3 of 03-31-20 10:23 AM) Link | #1590
So, any idea for fixing it?
I've 4 ideas :
A- Check the code of DeSmuME to know how they fixed this.
B- Boot the firmware without displaying it, when it's booted go to directly to the game (maybe by doing 2 "virtual" mouse click).
C- Add code that can decrypt secure area. Maybe DSi SRL Extractor?
D- Use a database of already decrypted ROMs secure area and use those ones instead of the encrypted ones.

Posted on 03-31-20 10:22 AM Link | #1591
I fixed it already, actually

basically the loading process in melonDS went like

* if doing a direct boot, copy the ARM9 and ARM7 binaries to RAM
* if needed, re-encrypt the secure area (which is required for a full firmware boot)

as such, ROMs that were already encrypted could be loaded fine when booting from the firmware, but not when doing a direct boot, because it would be copying the encrypted secure area to RAM instead of decrypting first


Posted on 03-31-20 10:23 AM Link | #1592

Main - Development - Request - SRL ROM file compatibility New reply

Page rendered in 0.019 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 89/89, time: 0.015 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.