mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
cellGame: report fs::remove_all failure
This commit is contained in:
parent
4488312e81
commit
cb52ee0a4d
@ -133,16 +133,23 @@ struct content_permission final
|
||||
|
||||
~content_permission()
|
||||
{
|
||||
bool success = false;
|
||||
fs::g_tls_error = fs::error::ok;
|
||||
|
||||
try
|
||||
{
|
||||
if (temp.size() > 1)
|
||||
if (temp.size() <= 1 || fs::remove_all(temp))
|
||||
{
|
||||
fs::remove_all(temp);
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cellGame.fatal("Failed to clean directory '%s'", temp);
|
||||
}
|
||||
|
||||
if (!success)
|
||||
{
|
||||
cellGame.fatal("Failed to clean directory '%s' (%s)", temp, fs::g_tls_error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user