mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-12 11:40:16 +01:00
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:
parent
eff25ed0aa
commit
673cc040fa
|
|
@ -569,6 +569,7 @@ void main_window::BootElf()
|
|||
"SELF files (EBOOT.BIN *.self);;"
|
||||
"BOOT files (*BOOT.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 files (*.*)"),
|
||||
Q_NULLPTR, QFileDialog::DontResolveSymlinks);
|
||||
|
|
@ -4019,7 +4020,7 @@ main_window::drop_type main_window::IsValidFile(const QMimeData& md, QStringList
|
|||
type = drop_type::drop_rrc;
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue