Fix overwriting, when installing PKG files
Now properly removes the directory and tries to continue installation.
This commit is contained in:
@@ -31,9 +31,8 @@ bool PKGLoader::Install(std::string dest)
|
||||
LOG_ERROR(LOADER, "PKG Loader: Another installation found in: %s", titleID.c_str());
|
||||
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());
|
||||
return false;
|
||||
|
||||
rRmdir(dest + titleID);
|
||||
}
|
||||
if (!rMkdir(dest + titleID)) {
|
||||
LOG_ERROR(LOADER, "PKG Loader: Could not make the installation directory: %s", titleID.c_str());
|
||||
|
||||
Reference in New Issue
Block a user