Views: 6,697,855 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-28-24 04:23 PM
Guest:

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

Main - Development - Request - SRL ROM file compatibility Hide post layouts | New reply


FellFromTheSky
Posted on 03-26-20 10: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.

Thanks.

Arisotura
Posted on 03-26-20 10: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.

____________________
Kuribo64

FellFromTheSky
Posted on 03-27-20 01:10 PM (rev. 4 of 03-27-20 03:18 PM) 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.

EDIT :
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.

Arisotura
Posted on 03-28-20 02:55 PM 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.

____________________
Kuribo64

Arisotura
Posted on 03-30-20 08:38 AM (rev. 2 of 03-30-20 08: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.

____________________
Kuribo64

FellFromTheSky
Posted on 03-31-20 02:18 PM (rev. 3 of 03-31-20 02:23 PM) 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.

Arisotura
Posted on 03-31-20 02:22 PM 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

____________________
Kuribo64

FellFromTheSky
Posted on 03-31-20 02:23 PM Link | #1592
Ok.


Main - Development - Request - SRL ROM file compatibility Hide post layouts | New reply

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