From f064a26382bbbbaf2aed6b56631edbed71dfe342 Mon Sep 17 00:00:00 2001 From: Jake Date: Sat, 22 Apr 2017 02:12:46 -0500 Subject: [PATCH] Settings Fix --- rpcs3/Gui/SettingsDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Gui/SettingsDialog.cpp b/rpcs3/Gui/SettingsDialog.cpp index 3ef696f523..519b105977 100644 --- a/rpcs3/Gui/SettingsDialog.cpp +++ b/rpcs3/Gui/SettingsDialog.cpp @@ -354,10 +354,13 @@ SettingsDialog::SettingsDialog(wxWindow* parent, const std::string& path) for (const auto& prxf : fs::dir(lle_dir)) { // List found unselected modules - if (!prxf.is_directory && ppu_prx_object(decrypt_self(fs::file(lle_dir + prxf.name))) == elf_error::ok && !set.count(prxf.name)) + if (prxf.is_directory || (prxf.name.substr(std::max(size_t(3), prxf.name.length()) - 3)) != "prx") + continue; + if (verify_npdrm_self_headers(fs::file(lle_dir + prxf.name)) && !set.count(prxf.name)) { lle_module_list_unselected.push_back(prxf.name); } + } sort_string_vector(lle_module_list_unselected);