From 97e26f9d6cfcae258c0efc4d4371000ec208570d Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 22 Sep 2020 21:29:08 +0300 Subject: [PATCH] Trophy fixup --- rpcs3/Loader/TRP.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Loader/TRP.cpp b/rpcs3/Loader/TRP.cpp index be5cce139f..f617a1e968 100644 --- a/rpcs3/Loader/TRP.cpp +++ b/rpcs3/Loader/TRP.cpp @@ -31,6 +31,9 @@ bool TRPLoader::Install(const std::string& dest, bool show) return false; } + // Save TROPUSR.DAT + fs::copy_file(temp + "/TROPUSR.DAT", local_path + "/TROPUSR.DAT", false); + std::vector buffer(65536); bool success = true; @@ -50,7 +53,7 @@ bool TRPLoader::Install(const std::string& dest, bool show) if (success) { - success = vfs::host::remove_all(local_path, Emu.GetHddDir(), true); + success = vfs::host::remove_all(local_path, Emu.GetHddDir(), true) || !fs::is_dir(local_path); if (success) {