blob: ef162633e32ccba03c90c6b5af77d61bebd16f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|