|
Pyrogenesis
13997
|
#include "precompiled.h"#include "Filesystem.h"#include "gui/GUIManager.h"#include "ps/CLogger.h"#include "ps/Profile.h"#include "lib/res/h_mgr.h"#include "lib/sysdep/dir_watch.h"#include "lib/utf8.h"Go to the source code of this file.
Functions | |
| bool | VfsFileExists (const VfsPath &pathname) |
| void | RegisterFileReloadFunc (FileReloadFunc func, void *obj) |
| register a callback function to be called by ReloadChangedFiles More... | |
| void | UnregisterFileReloadFunc (FileReloadFunc func, void *obj) |
| delete a callback function registered with RegisterFileReloadFunc (removes any with the same func and obj) More... | |
| static bool | CanIgnore (const DirWatchNotification ¬ification) |
| Status | ReloadChangedFiles () |
| poll for directory change notifications and reload all affected files. More... | |
| std::wstring | GetWstringFromWpath (const fs::wpath &path) |
| Helper function to handle API differences between Boost Filesystem v2 and v3. More... | |
Variables | |
| PIVFS | g_VFS |
| static std::vector< std::pair < FileReloadFunc, void * > > | g_ReloadFuncs |
|
static |
Definition at line 50 of file Filesystem.cpp.
| std::wstring GetWstringFromWpath | ( | const fs::wpath & | path | ) |
Helper function to handle API differences between Boost Filesystem v2 and v3.
Definition at line 98 of file Filesystem.cpp.
| void RegisterFileReloadFunc | ( | FileReloadFunc | func, |
| void * | obj | ||
| ) |
register a callback function to be called by ReloadChangedFiles
Definition at line 39 of file Filesystem.cpp.
| Status 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.
Definition at line 70 of file Filesystem.cpp.
| void UnregisterFileReloadFunc | ( | FileReloadFunc | func, |
| void * | obj | ||
| ) |
delete a callback function registered with RegisterFileReloadFunc (removes any with the same func and obj)
Definition at line 44 of file Filesystem.cpp.
| bool VfsFileExists | ( | const VfsPath & | pathname | ) |
Definition at line 34 of file Filesystem.cpp.
|
static |
Definition at line 32 of file Filesystem.cpp.
| PIVFS g_VFS |
Definition at line 30 of file Filesystem.cpp.
1.8.5