Skip to content

Commit

Permalink
Set userland firmware SPRX directory as the default PS3 decryption to…
Browse files Browse the repository at this point in the history
…ol path
  • Loading branch information
elad335 authored and Megamouse committed Apr 2, 2021
1 parent 9c7230e commit a1d31f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rpcs3/rpcs3qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,14 @@ extern void sysutil_send_system_cmd(u64 status, u64 param);

void main_window::DecryptSPRXLibraries()
{
const QString path_last_sprx = m_gui_settings->GetValue(gui::fd_decrypt_sprx).toString();
QString path_last_sprx = m_gui_settings->GetValue(gui::fd_decrypt_sprx).toString();

if (!fs::is_dir(sstr(path_last_sprx)))
{
// Default: redirect to userland firmware SPRX directory
path_last_sprx = qstr(g_cfg.vfs.get_dev_flash() + "sys/external");
}

const QStringList modules = QFileDialog::getOpenFileNames(this, tr("Select binary files"), path_last_sprx, tr("All Binaries (*.BIN *.self *.sprx);;BIN files (*.BIN);;SELF files (*.self);;SPRX files (*.sprx);;All files (*.*)"));

if (modules.isEmpty())
Expand Down

0 comments on commit a1d31f6

Please sign in to comment.