Log fs::g_tls_error on ACCESS_ERROR errors
This commit is contained in:
@@ -670,7 +670,7 @@ error_code cellGameCreateGameData(vm::ptr<CellGameSetInitParams> init, vm::ptr<c
|
||||
|
||||
if (!fs::create_dir(vfs::get(tmp_contentInfo)))
|
||||
{
|
||||
cellGame.error("cellGameCreateGameData(): failed to create directory '%s'", tmp_contentInfo);
|
||||
cellGame.error("cellGameCreateGameData(): failed to create directory '%s' (%s)", tmp_contentInfo, fs::g_tls_error);
|
||||
return CELL_GAME_ERROR_ACCESS_ERROR; // ???
|
||||
}
|
||||
|
||||
@@ -679,7 +679,7 @@ error_code cellGameCreateGameData(vm::ptr<CellGameSetInitParams> init, vm::ptr<c
|
||||
|
||||
if (!fs::create_dir(vfs::get(tmp_usrdir)))
|
||||
{
|
||||
cellGame.error("cellGameCreateGameData(): failed to create directory '%s'", tmp_usrdir);
|
||||
cellGame.error("cellGameCreateGameData(): failed to create directory '%s' (%s)", tmp_usrdir, fs::g_tls_error);
|
||||
return CELL_GAME_ERROR_ACCESS_ERROR; // ???
|
||||
}
|
||||
|
||||
@@ -885,6 +885,7 @@ error_code cellGameGetSizeKB(vm::ptr<s32> size)
|
||||
}
|
||||
else
|
||||
{
|
||||
cellGame.error("cellGameGetSizeKb(): unexpexcted error on path '%s' (%s)", local_dir, fs::g_tls_error);
|
||||
return CELL_GAME_ERROR_ACCESS_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1088,7 +1088,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
// Create save directory if necessary
|
||||
if (psf.size() && save_entry.isNew && !fs::create_dir(dir_path))
|
||||
{
|
||||
cellSaveData.warning("savedata_op(): failed to create %s", dir_path);
|
||||
cellSaveData.warning("savedata_op(): failed to create %s (%s)", dir_path, fs::g_tls_error);
|
||||
return CELL_SAVEDATA_ERROR_ACCESS_ERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -322,13 +322,12 @@ s32 cellSysCacheClear()
|
||||
|
||||
std::string local_dir = vfs::get(cache->cache_path);
|
||||
|
||||
if (!fs::exists(local_dir) || !fs::is_dir(local_dir))
|
||||
if (!fs::remove_all(local_dir, false))
|
||||
{
|
||||
cellSysutil.error("cellSysCacheClear(): failed to clear directory '%s' (%s)", cache->cache_path, fs::g_tls_error);
|
||||
return CELL_SYSCACHE_ERROR_ACCESS_ERROR;
|
||||
}
|
||||
|
||||
fs::remove_all(local_dir, false);
|
||||
|
||||
return CELL_SYSCACHE_RET_OK_CLEARED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user