2023-02-19 20:47:31 +01:00
|
|
|
#ifndef __FILEOPS_H__
|
|
|
|
#define __FILEOPS_H__
|
|
|
|
|
2024-03-02 00:07:58 +01:00
|
|
|
#include <sys/stat.h>
|
2023-02-19 20:47:31 +01:00
|
|
|
#include <dirent.h>
|
|
|
|
#include <ogcsys.h>
|
|
|
|
|
|
|
|
bool FSOPFileExists(const char* file);
|
|
|
|
bool FSOPFolderExists(const char* path);
|
|
|
|
size_t FSOPGetFileSizeBytes(const char* path);
|
|
|
|
|
|
|
|
void FSOPDeleteFile(const char* file);
|
|
|
|
void FSOPMakeFolder(const char* path);
|
|
|
|
|
|
|
|
s32 FSOPReadOpenFile(FILE* fp, void* buffer, u32 offset, u32 length);
|
|
|
|
s32 FSOPReadOpenFileA(FILE* fp, void** buffer, u32 offset, u32 length);
|
|
|
|
|
2024-03-02 00:07:58 +01:00
|
|
|
#endif
|