Merge pull request #18542 from hrydgard/plugin-load-message

Add a notification when loading a PPSSPP prx plugin
This commit is contained in:
Henrik Rydgård 2023-12-13 21:48:09 +01:00 committed by GitHub
commit 859e124f1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 56 additions and 7 deletions

View file

@ -22,6 +22,9 @@
#include "Common/File/FileUtil.h"
#include "Common/File/DirListing.h"
#include "Common/Serialize/SerializeFuncs.h"
#include "Common/System/OSD.h"
#include "Common/Data/Text/I18n.h"
#include "Common/StringUtils.h"
#include "Core/Config.h"
#include "Core/MemMap.h"
#include "Core/System.h"
@ -173,25 +176,28 @@ void Init() {
bool Load() {
bool started = false;
auto sy = GetI18NCategory(I18NCat::SYSTEM);
for (const std::string &filename : prxPlugins) {
std::string shortName = Path(filename).GetFilename();
std::string error_string = "";
SceUID module = KernelLoadModule(filename, &error_string);
if (!error_string.empty()) {
ERROR_LOG(SYSTEM, "Unable to load plugin %s: %s", filename.c_str(), error_string.c_str());
continue;
}
if (module < 0) {
ERROR_LOG(SYSTEM, "Unable to load plugin %s: %08x", filename.c_str(), module);
if (!error_string.empty() || module < 0) {
ERROR_LOG(SYSTEM, "Unable to load plugin %s (module %d): '%s'", filename.c_str(), module, error_string.c_str());
continue;
}
int ret = KernelStartModule(module, 0, 0, 0, nullptr, nullptr);
if (ret < 0) {
ERROR_LOG(SYSTEM, "Unable to start plugin %s: %08x", filename.c_str(), ret);
} else {
g_OSD.Show(OSDType::MESSAGE_SUCCESS, ApplySafeSubstitutions(sy->T("Loaded plugin: %1"), shortName));
started = true;
}
INFO_LOG(SYSTEM, "Loaded plugin: %s", filename.c_str());
started = true;
}
std::lock_guard<std::mutex> guard(g_inputMutex);

View file

@ -1239,6 +1239,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = ‎اللغة
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = ‎تغيير الأسم المستعار

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Language
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Change nickname

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Език
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Промени прякор

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Llengua
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Change nickname

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Jazyk
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Změnit přezdívku

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Sprog
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Ændre kaldenavn

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Sprache
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick Ordner
Memory Stick size = Memory Stick size
Change Nickname = Spitznamen ändern

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Bahasa
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Sullei Nickname

View file

@ -1240,6 +1240,7 @@ AVI Dump started. = AVI dump started
AVI Dump stopped. = AVI dump stopped
Cache ISO in RAM = Cache full ISO in RAM
Change CPU Clock = Change emulated PSP's CPU clock (unstable)
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Change nickname

View file

@ -1232,6 +1232,7 @@ Failed to load state for load undo. Error in the file system. = Falló la revers
Floating symbols = Símbolos flotantes
Game crashed = El juego se ha colgado
Language = Idioma
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Directorio de Memory Stick
Memory Stick size = Cambiar tamaño de Memory Stick (GB)
Change Nickname = Cambiar apodo PSP

View file

@ -1233,6 +1233,7 @@ Failed to load state for load undo. Error in the file system. = Falló la revers
Floating symbols = Símbolos flotantes
Game crashed = Game crashed
Language = Idioma
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Carpeta del Memory Stick
Memory Stick size = Tamaño del Memory Stick
Change Nickname = Cambiar nombre de usuario

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = ‎زبان
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = ‎تغییر نام

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Peli kaatui
Language = Kieli
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Muistikortin kansio
Memory Stick size = Muistikortin koko
Change Nickname = Vaihda nimimerkkiä

View file

@ -1222,6 +1222,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Langue
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Changer le dossier de la Memory Stick
Memory Stick size = Changer la taille de la Memory Stick (Go)
Change Nickname = Changer de pseudo

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Idioma
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Cambiar alcume PSP

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Γλώσσα
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Αλλαγή φακέλου Memory Stick
Memory Stick size = Memory Stick size
Change Nickname = Αλλαγή Ψευδωνύμου

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = שפה
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = שנה כינוי

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = הפש
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = יוניכ הנש

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Jezik
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Promijeni mapu Memorijskoga sticka
Memory Stick size = Memory Stick size
Change Nickname = Promijeni nadimak

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Nyelv
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick mappa megváltoztatása
Memory Stick size = Memory Stick size
Change Nickname = Becenév megváltoztatása

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Gagal memuat sta
Floating symbols = Simbol mengambang
Game crashed = Game crashed
Language = Bahasa
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Berkas Memory Stick
Memory Stick size = Ukuran Memory Stick
Change Nickname = Ganti nama panggilan

View file

@ -1232,6 +1232,7 @@ Failed to load state for load undo. Error in the file system. = Impossibile cari
Floating symbols = Simboli fluttuanti
Game crashed = Il gioco è andato in crash
Language = Lingua
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Cartella della Memory Stick
Memory Stick size = Cambia dimensioni Memory Stick
Change Nickname = Cambia Nick

View file

@ -1229,6 +1229,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = 言語
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = メモリースティックフォルダを変更する
Memory Stick size = メモリースティックの容量の変更 (GB)
Change Nickname = ニックネームを変更する

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Basa
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Ganti Jeneng

View file

@ -1216,6 +1216,7 @@ AVI Dump started. = AVI 덤프가 시작됨
AVI Dump stopped. = AVI 덤프가 중지됨
Cache ISO in RAM = RAM에 전체 ISO 캐시
Change CPU Clock = 에뮬레이트된 PSP의 CPU 클럭 변경 (불안정)
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = 메모리 스틱 폴더
Memory Stick size = 메모리 스틱 크기
Change Nickname = 별명 변경

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = ພາສາ
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = ປ່ຽນຊື່ຫຼິ້ນ

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Kalba
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Pakeisti slapyvardį

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Bahasa
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Tukar nama samaran

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Taal
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Gebruikersnaam wijzigen

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Language
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Endre Kallenavn

View file

@ -1237,6 +1237,7 @@ Failed to load state for load undo. Error in the file system. = Błąd podczas
Floating symbols = Przepływ symboli
Game crashed = Gra uległa awarii
Language = Język
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Zmień folder Karty Pamięci
Memory Stick size = Rozmiar Karty Pamięci
Change Nickname = Zmień pseudonim

View file

@ -1240,6 +1240,7 @@ AVI Dump started. = Dump do AVI iniciado
AVI Dump stopped. = Dump do AVI parado
Cache ISO in RAM = Pôr a ISO inteira na RAM
Change CPU Clock = Mudar o clock da CPU do PSP emulado (instável)
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Pasta do cartão de memória
Memory Stick size = Tamanho do cartão de memória
Change Nickname = Mudar apelido

View file

@ -1244,6 +1244,7 @@ Cache ISO in RAM = Colocar a ISO inteira na memória RAM
Change CPU Clock = Mudar o clock da CPU da PSP emulado (instável)
Game crashed = O jogo crashou
Language = Idioma
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Pasta do cartão de memória
Memory Stick size = Tamanho do cartão de memória
Change Nickname = Mudar Apelido

View file

@ -1232,6 +1232,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Limbă
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Schimbă nume

View file

@ -1228,6 +1228,7 @@ Color Saturation = Насыщенность
Color Tint = Оттенок цвета
Game crashed = Игра вылетела
Language = Язык
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Изменить папку с картой памяти
Memory Stick size = Изменить размер карты памяти (Гб)
Change Nickname = Изменить ник

View file

@ -1231,6 +1231,7 @@ Error: load undo state is from a different game = Error: load undo state is from
Failed to load state for load undo. Error in the file system. = Failed to load state for load undo. Error in the file system.
Floating symbols = Flytande symboler
Game crashed = Game crashed
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick-mapp
Memory Stick size = Memory Stick-storlek
Change Nickname = Ändra nickname

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Lumulutang na simbolo
Game crashed = Game crashed
Language = Wika
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Baguhin ang palayaw

View file

@ -1283,6 +1283,7 @@ Interpreter = อินเตอร์พรีเตอร์
IO timing method = ทางเลือกคำนวณเวลา รับ/ส่ง ข้อมูล
IR Interpreter = ไออาร์ อินเตอร์พรีเตอร์
Language = ภาษา
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = เปลี่ยนแหล่งที่เก็บข้อมูล (เม็มโมรี่ สติ๊ก)
Memory Stick Folder = โฟลเดอร์แหล่งที่เก็บข้อมูล (เม็มโมรี่ สติ๊ก)
Memory Stick inserted = ใส่ที่เก็บบันทึกข้อมูล (เม็มโมรี่ สติ๊ก)

View file

@ -1232,6 +1232,7 @@ Failed to load state for load undo. Error in the file system. = Yüklemeyi geri
Floating symbols = Kayan simgeler
Game crashed = Game crashed
Language = Dil
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Hafıza Kartı klasörü
Memory Stick size = Hafıza Kartı boyutu
Change Nickname = Kullanıcı adını değiştir

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Мова
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Змінити папку для карти пам'яті
Memory Stick size = Memory Stick size
Change Nickname = Змінити ім'я

View file

@ -1231,6 +1231,7 @@ Failed to load state for load undo. Error in the file system. = Failed to load s
Floating symbols = Floating symbols
Game crashed = Game crashed
Language = Ngôn ngữ
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = Memory Stick folder
Memory Stick size = Memory Stick size
Change Nickname = Đổi nickname

View file

@ -1217,6 +1217,7 @@ AVI Dump started. = AVI转储开始
AVI Dump stopped. = AVI转储停止
Cache ISO in RAM = 在内存中缓存完整ISO
Change CPU Clock = 修改PSP的CPU频率 (不稳定)
Loaded plugin: %1 = Loaded plugin: %1
RetroAchievements = RetroAchievements
Rewind Snapshot Interval = 倒带快照间隔
Color Tint = 颜色色调

View file

@ -1218,6 +1218,7 @@ Cache ISO in RAM = 將完整 ISO 快取於 RAM
Change CPU Clock = 變更模擬 PSP CPU 時脈 (不穩定)
Game crashed = 遊戲已當機
Language = 語言
Loaded plugin: %1 = Loaded plugin: %1
Memory Stick folder = 記憶棒資料夾
Memory Stick size = 記憶棒大小
Change Nickname = 變更暱稱