mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
d94c66d773
-updated libcustomfat and libvorbis thanks to GreyWolf -updated libturbojpeg thanks to Fix94 -fixed cheat menu so cheat names with apostrophe's display properly
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#ifndef _FILEOPS
|
|
#define _FILEOPS
|
|
|
|
#include <dirent.h>
|
|
#include <unistd.h>
|
|
#include "memory/mem2.hpp"
|
|
|
|
typedef void (*progress_callback_t)(int status,int total,void *user_data);
|
|
|
|
bool fsop_GetFileSizeBytes(const char *path, u32 *filesize);
|
|
u64 fsop_GetFolderBytes(const char *source);
|
|
u32 fsop_GetFolderKb(const char *source);
|
|
u32 fsop_GetFreeSpaceKb(const char *path);
|
|
bool fsop_CopyFile(const char *source, const char *target, progress_callback_t spinner, void *spinner_data);
|
|
bool fsop_CopyFolder(const char *source, const char *target, progress_callback_t spinner, void *spinner_data);
|
|
void fsop_deleteFolder(const char *source);
|
|
bool fsop_FileExist(const char *fn);
|
|
u8 *fsop_ReadFile(const char *path, u32 *size);
|
|
void fsop_ReadFileLoc(const char *path, const u32 size, void *loc);
|
|
bool fsop_WriteFile(const char *path, const void *mem, const u32 size);
|
|
void fsop_deleteFile(const char *source);
|
|
bool fsop_FolderExist(const char *path);
|
|
bool fsop_MakeFolder(const char *fullpath);
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |