aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/je_asset_database.h
blob: b8f96f64f23793e527f438cf6b6e641f4ce4d153 (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
32
33
34
35
36
#ifndef __JE_ASSET_DATABASE_H
#define __JE_ASSET_DATABASE_H

#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

#endif