ISO: Add UI support
Adds ISO file type to load dialog and allows launching ISO games via drag and drop.
This commit is contained in:
@@ -569,6 +569,7 @@ void main_window::BootElf()
|
|||||||
"SELF files (EBOOT.BIN *.self);;"
|
"SELF files (EBOOT.BIN *.self);;"
|
||||||
"BOOT files (*BOOT.BIN);;"
|
"BOOT files (*BOOT.BIN);;"
|
||||||
"BIN files (*.bin);;"
|
"BIN files (*.bin);;"
|
||||||
|
"ISO files (*.iso);;"
|
||||||
"All executable files (*.SAVESTAT.zst *.SAVESTAT.gz *.SAVESTAT *.sprx *.SPRX *.self *.SELF *.bin *.BIN *.prx *.PRX *.elf *.ELF *.o *.O);;"
|
"All executable files (*.SAVESTAT.zst *.SAVESTAT.gz *.SAVESTAT *.sprx *.SPRX *.self *.SELF *.bin *.BIN *.prx *.PRX *.elf *.ELF *.o *.O);;"
|
||||||
"All files (*.*)"),
|
"All files (*.*)"),
|
||||||
Q_NULLPTR, QFileDialog::DontResolveSymlinks);
|
Q_NULLPTR, QFileDialog::DontResolveSymlinks);
|
||||||
@@ -4019,7 +4020,7 @@ main_window::drop_type main_window::IsValidFile(const QMimeData& md, QStringList
|
|||||||
type = drop_type::drop_rrc;
|
type = drop_type::drop_rrc;
|
||||||
}
|
}
|
||||||
// The emulator allows to execute ANY filetype, just not from drag-and-drop because it is confusing to users
|
// The emulator allows to execute ANY filetype, just not from drag-and-drop because it is confusing to users
|
||||||
else if (path.toLower().endsWith(".savestat.gz") || path.toLower().endsWith(".savestat.zst") || suffix_lo == "savestat" || suffix_lo == "sprx" || suffix_lo == "self" || suffix_lo == "bin" || suffix_lo == "prx" || suffix_lo == "elf" || suffix_lo == "o")
|
else if (path.toLower().endsWith(".savestat.gz") || path.toLower().endsWith(".savestat.zst") || suffix_lo == "savestat" || suffix_lo == "sprx" || suffix_lo == "self" || suffix_lo == "bin" || suffix_lo == "prx" || suffix_lo == "elf" || suffix_lo == "o" || suffix_lo == "iso")
|
||||||
{
|
{
|
||||||
type = drop_type::drop_game;
|
type = drop_type::drop_game;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user