From 2c3072c769de40d196d786f1bb76e3f508b60410 Mon Sep 17 00:00:00 2001 From: Leonid Pavel Date: Wed, 14 Jun 2023 19:18:21 +0000 Subject: [PATCH] kernel: have Substitute load .prx libraries --- kernel/src/Plugins/Substitute/Substitute.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/src/Plugins/Substitute/Substitute.cpp b/kernel/src/Plugins/Substitute/Substitute.cpp index 1a845d23..069208ca 100644 --- a/kernel/src/Plugins/Substitute/Substitute.cpp +++ b/kernel/src/Plugins/Substitute/Substitute.cpp @@ -1023,8 +1023,9 @@ void Substitute::LoadAllPrx(struct thread* td, const char* folder_path) auto l_Dent = (struct dirent*)(s_Buffer + l_Pos); s_DentCount++; - // Check if the sprx is legit - if (strstr(l_Dent->d_name, ".sprx")) { + // Check if the (s)prx is legit + if (strstr(l_Dent->d_name, ".prx") + || strstr(l_Dent->d_name, ".sprx")) { // Generating relative path char s_RelativeSprxPath[PATH_MAX]; snprintf(s_RelativeSprxPath, PATH_MAX, "%s%s", folder_path, l_Dent->d_name);