From 4ad563f8fc0d840ea895b4a16f0bf20e16b81e84 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Sat, 17 Sep 2022 14:40:19 -0400 Subject: [PATCH] IOPBios: Properly increment host dir iterator Fixes uLaunchELF and any other homebrew that iterates over directories. --- pcsx2/IopBios.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index a0bbd20806..2b38a3f703 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -356,7 +356,7 @@ namespace R3000A StringUtil::Strlcpy(hostcontent->name, dir->FileName, sizeof(hostcontent->name)); host_stat(host_path(Path::Combine(basedir, dir->FileName), true), &hostcontent->stat); - static_cast(std::next(dir)); /* This is for avoid warning of non used return value */ + dir = std::next(dir); return 1; }