cellFsFsync

This commit is contained in:
raven02 2014-08-09 16:44:27 +08:00
parent 1521eea324
commit 6a0ad1b001
3 changed files with 11 additions and 2 deletions

View File

@ -6,8 +6,6 @@
#include "Emu/SysCalls/SC_FUNC.h" #include "Emu/SysCalls/SC_FUNC.h"
#include "Emu/SysCalls/Modules.h" #include "Emu/SysCalls/Modules.h"
//void sys_fs_init();
//Module sys_fs(0x000e, sys_fs_init);
Module *sys_fs = nullptr; Module *sys_fs = nullptr;
bool sdata_check(u32 version, u32 flags, u64 filesizeInput, u64 filesizeTmp) bool sdata_check(u32 version, u32 flags, u64 filesizeInput, u64 filesizeTmp)
@ -279,6 +277,7 @@ void sys_fs_init()
sys_fs->AddFunc(0xba901fe6, cellFsMkdir); sys_fs->AddFunc(0xba901fe6, cellFsMkdir);
sys_fs->AddFunc(0xf12eecc8, cellFsRename); sys_fs->AddFunc(0xf12eecc8, cellFsRename);
sys_fs->AddFunc(0x99406d0b, cellFsChmod); sys_fs->AddFunc(0x99406d0b, cellFsChmod);
sys_fs->AddFunc(0x967a162b, cellFsFsync);
sys_fs->AddFunc(0x2796fdf3, cellFsRmdir); sys_fs->AddFunc(0x2796fdf3, cellFsRmdir);
sys_fs->AddFunc(0x7f4677a8, cellFsUnlink); sys_fs->AddFunc(0x7f4677a8, cellFsUnlink);
sys_fs->AddFunc(0xa397d042, cellFsLseek); sys_fs->AddFunc(0xa397d042, cellFsLseek);

View File

@ -343,6 +343,15 @@ s32 cellFsChmod(u32 path_addr, u32 mode)
return CELL_OK; return CELL_OK;
} }
s32 cellFsFsync(u32 fd)
{
sys_fs->Todo("cellFsFsync(fd=0x%x)", fd);
// TODO:
return CELL_OK;
}
s32 cellFsRmdir(u32 path_addr) s32 cellFsRmdir(u32 path_addr)
{ {
const std::string& ps3_path = Memory.ReadString(path_addr); const std::string& ps3_path = Memory.ReadString(path_addr);

View File

@ -136,6 +136,7 @@ s32 cellFsFstat(u32 fd, mem_ptr_t<CellFsStat> sb);
s32 cellFsMkdir(u32 path_addr, u32 mode); s32 cellFsMkdir(u32 path_addr, u32 mode);
s32 cellFsRename(u32 from_addr, u32 to_addr); s32 cellFsRename(u32 from_addr, u32 to_addr);
s32 cellFsChmod(u32 path_addr, u32 mode); s32 cellFsChmod(u32 path_addr, u32 mode);
s32 cellFsFsync(u32 fd);
s32 cellFsRmdir(u32 path_addr); s32 cellFsRmdir(u32 path_addr);
s32 cellFsUnlink(u32 path_addr); s32 cellFsUnlink(u32 path_addr);
s32 cellFsLseek(u32 fd, s64 offset, u32 whence, mem64_t pos); s32 cellFsLseek(u32 fd, s64 offset, u32 whence, mem64_t pos);