18 #ifndef INCLUDED_PS_FILESYSTEM
19 #define INCLUDED_PS_FILESYSTEM
105 #endif // #ifndef INCLUDED_PS_FILESYSTEM
CStr DecodeUTF8() const
Returns contents of a UTF-8 encoded file as a string with optional BOM removed.
Reads a file, then gives read-only access to the contents.
std::wstring GetWstringFromWpath(const fs::wpath &path)
Helper function to handle API differences between Boost Filesystem v2 and v3.
CStr GetAsString() const
Returns contents of file as a string.
Status(* FileReloadFunc)(void *param, const VfsPath &path)
callback function type for file change notifications
Status ReloadChangedFiles()
poll for directory change notifications and reload all affected files.
void UnregisterFileReloadFunc(FileReloadFunc func, void *obj)
delete a callback function registered with RegisterFileReloadFunc (removes any with the same func and...
void RegisterFileReloadFunc(FileReloadFunc func, void *obj)
register a callback function to be called by ReloadChangedFiles
const u8 * GetBuffer() const
Returns buffer of this file as a stream of bytes.
i64 Status
Error handling system.
shared_ptr< u8 > m_Buffer
PSRETURN Load(const PIVFS &vfs, const VfsPath &filename)
Returns either PSRETURN_OK or PSRETURN_CVFSFile_LoadFailed.
bool VfsFileExists(const VfsPath &pathname)
size_t GetBufferSize() const