mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-22 04:25:19 +00:00
finding from @3141card on PS3 console
This commit is contained in:
parent
5a2a2f49ed
commit
a1189fa37a
1 changed files with 4 additions and 4 deletions
|
@ -318,8 +318,8 @@ error_code sys_fs_stat(vm::cptr<char> path, vm::ptr<CellFsStat> sb)
|
|||
}
|
||||
|
||||
sb->mode = info.is_directory ? CELL_FS_S_IFDIR | 0777 : CELL_FS_S_IFREG | 0666;
|
||||
sb->uid = 1; // ???
|
||||
sb->gid = 1; // ???
|
||||
sb->uid = 0; // Always zero
|
||||
sb->gid = 0; // Always zero
|
||||
sb->atime = info.atime;
|
||||
sb->mtime = info.mtime;
|
||||
sb->ctime = info.ctime;
|
||||
|
@ -345,8 +345,8 @@ error_code sys_fs_fstat(u32 fd, vm::ptr<CellFsStat> sb)
|
|||
const fs::stat_t& info = file->file.stat();
|
||||
|
||||
sb->mode = info.is_directory ? CELL_FS_S_IFDIR | 0777 : CELL_FS_S_IFREG | 0666;
|
||||
sb->uid = 1; // ???
|
||||
sb->gid = 1; // ???
|
||||
sb->uid = 0; // Always zero
|
||||
sb->gid = 0; // Always zero
|
||||
sb->atime = info.atime;
|
||||
sb->mtime = info.mtime;
|
||||
sb->ctime = info.ctime; // ctime may be incorrect
|
||||
|
|
Loading…
Add table
Reference in a new issue