mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
Add srl and dsi as "direct-load" formats
* Direct-load = anything not in an archive Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
This commit is contained in:
@ -506,7 +506,7 @@ int Reset()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString fileName(ROMPath[ROMSlot_NDS]);
|
QString fileName(ROMPath[ROMSlot_NDS]);
|
||||||
if(fileName.endsWith(".nds"))
|
if(fileName.endsWith(".nds") || fileName.endsWith(".srl") || fileName.endsWith(".dsi"))
|
||||||
{
|
{
|
||||||
SetupSRAMPath(0);
|
SetupSRAMPath(0);
|
||||||
if (!NDS::LoadROM(ROMPath[ROMSlot_NDS], SRAMPath[ROMSlot_NDS], directboot))
|
if (!NDS::LoadROM(ROMPath[ROMSlot_NDS], SRAMPath[ROMSlot_NDS], directboot))
|
||||||
|
@ -1742,7 +1742,7 @@ void MainWindow::onClickRecentFile()
|
|||||||
QAction *act = (QAction *)sender();
|
QAction *act = (QAction *)sender();
|
||||||
QString fileName = act->data().toString();
|
QString fileName = act->data().toString();
|
||||||
|
|
||||||
if(fileName.endsWith(".gba") || fileName.endsWith(".nds"))
|
if(fileName.endsWith(".gba") || fileName.endsWith(".nds") || fileName.endsWith(".srl") || fileName.endsWith(".dsi"))
|
||||||
{
|
{
|
||||||
emuThread->emuPause();
|
emuThread->emuPause();
|
||||||
loadROM(fileName);
|
loadROM(fileName);
|
||||||
|
Reference in New Issue
Block a user