Trophy fixup

This commit is contained in:
Eladash 2020-09-22 21:29:08 +03:00 committed by Ivan
parent bfa78870cb
commit 97e26f9d6c

View file

@ -31,6 +31,9 @@ bool TRPLoader::Install(const std::string& dest, bool show)
return false; return false;
} }
// Save TROPUSR.DAT
fs::copy_file(temp + "/TROPUSR.DAT", local_path + "/TROPUSR.DAT", false);
std::vector<char> buffer(65536); std::vector<char> buffer(65536);
bool success = true; bool success = true;
@ -50,7 +53,7 @@ bool TRPLoader::Install(const std::string& dest, bool show)
if (success) 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) if (success)
{ {