mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 22:14:58 +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()
|
~content_permission()
|
||||||
{
|
{
|
||||||
|
bool success = false;
|
||||||
|
fs::g_tls_error = fs::error::ok;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (temp.size() > 1)
|
if (temp.size() <= 1 || fs::remove_all(temp))
|
||||||
{
|
{
|
||||||
fs::remove_all(temp);
|
success = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...)
|
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…
x
Reference in New Issue
Block a user