diff options
Diffstat (limited to 'src/libjin/Filesystem/je_asset_database.h')
-rw-r--r-- | src/libjin/Filesystem/je_asset_database.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libjin/Filesystem/je_asset_database.h b/src/libjin/Filesystem/je_asset_database.h new file mode 100644 index 0000000..ef16263 --- /dev/null +++ b/src/libjin/Filesystem/je_asset_database.h @@ -0,0 +1,31 @@ +#include "je_buffer.h" +#include "../3rdparty/smount/smount.h" + +namespace JinEngine +{ + namespace Filesystem + { + /* Դ */ + class AssetDatabase + { + public: + static AssetDatabase* get(); + + AssetDatabase(); + + bool isDir(const char* path); + bool isFile(const char* path); + bool exists(const char* path); + int read(const char* path, Buffer* buffer); + void* read(const char* path, unsigned int* len); + void mount(const char* root); + const char* getFull(const char* path); + + private: + static AssetDatabase* fs; + smtShared* S; + + }; + + } // namespace Filesystem +} // namespace JinEngine
\ No newline at end of file |