#include "lib/allocators/shared_ptr.h"
#include "lib/file/vfs/vfs.h"
#include "lib/file/vfs/vfs_path.h"
#include "lib/status.h"
#include "ps/Errors.h"
#include <cstddef>
#include <memory>
Go to the source code of this file.
|
| class | CVFSFile |
| | Reads a file, then gives read-only access to the contents. More...
|
| |
◆ FileReloadFunc
| typedef Status(* FileReloadFunc) (void *param, const VfsPath &path) |
callback function type for file change notifications
◆ ERROR_GROUP()
◆ ERROR_TYPE() [1/2]
◆ ERROR_TYPE() [2/2]
◆ RegisterFileReloadFunc()
register a callback function to be called by ReloadChangedFiles
◆ ReloadChangedFiles()
poll for directory change notifications and reload all affected files.
must be called regularly (e.g. once a frame), else notifications may be lost. note: polling is much simpler than asynchronous notifications.
◆ UnregisterFileReloadFunc()
delete a callback function registered with RegisterFileReloadFunc (removes any with the same func and obj)
◆ VfsDirectoryExists()
| bool VfsDirectoryExists |
( |
const VfsPath & |
pathname | ) |
|
◆ VfsFileExists()
| bool VfsFileExists |
( |
const VfsPath & |
pathname | ) |
|
◆ g_VFS