mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
Minor changes: GCM command, PKG loader & SysCalls
* Fixed incorrect time displayed on NV4097_GET_REPORT. * Fixed small bug in PKGLoader::UnpackEntry * Moved some code in SC_Time.cpp * Auxiliary function declarations of SC_Time.cpp in SC_Time.h * Updated cellFsUnlink. *This won't work until ExistsFile is fully implemented*.
This commit is contained in:
parent
696e00a570
commit
7379b0e2ed
6 changed files with 36 additions and 18 deletions
|
|
@ -323,9 +323,18 @@ int cellFsUnlink(u32 path_addr)
|
|||
const wxString& ps3_path = Memory.ReadString(path_addr);
|
||||
sys_fs.Warning("cellFsUnlink(path=\"%s\")", ps3_path.wx_str());
|
||||
|
||||
//wxString localPath;
|
||||
//Emu.GetVFS().GetDevice(ps3_path, localPath);
|
||||
//wxRemoveFile(localPath);
|
||||
if (ps3_path.empty())
|
||||
return CELL_EFAULT;
|
||||
|
||||
if (Emu.GetVFS().ExistsDir(ps3_path))
|
||||
return CELL_EISDIR;
|
||||
|
||||
if (!Emu.GetVFS().ExistsFile(ps3_path))
|
||||
return CELL_ENOENT;
|
||||
|
||||
if (!Emu.GetVFS().RemoveFile(ps3_path))
|
||||
return CELL_EACCES;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue