mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Fix overwriting, when installing PKG files
Now properly removes the directory and tries to continue installation.
This commit is contained in:
parent
0d43c822cd
commit
ae47cdaad8
1 changed files with 4 additions and 5 deletions
|
@ -31,9 +31,8 @@ bool PKGLoader::Install(std::string dest)
|
||||||
LOG_ERROR(LOADER, "PKG Loader: Another installation found in: %s", titleID.c_str());
|
LOG_ERROR(LOADER, "PKG Loader: Another installation found in: %s", titleID.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// TODO: Remove the following two lines and remove the folder dest+titleID
|
|
||||||
LOG_ERROR(LOADER, "PKG Loader: Another installation found in: %s", titleID.c_str());
|
rRmdir(dest + titleID);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if (!rMkdir(dest + titleID)) {
|
if (!rMkdir(dest + titleID)) {
|
||||||
LOG_ERROR(LOADER, "PKG Loader: Could not make the installation directory: %s", titleID.c_str());
|
LOG_ERROR(LOADER, "PKG Loader: Could not make the installation directory: %s", titleID.c_str());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue