-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleFileSystem.h
More file actions
44 lines (30 loc) · 917 Bytes
/
ModuleFileSystem.h
File metadata and controls
44 lines (30 loc) · 917 Bytes
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
37
38
39
40
41
42
43
44
#ifndef __ModuleFileSystem_H__
#define __ModuleFileSystem_H__
#include "Module.h"
struct SDL_RWops;
int close_sdl_rwops(SDL_RWops *rw);
class ModuleFileSystem : public Module
{
public:
ModuleFileSystem(Application* app, bool start_enabled = true);
// Destructor
virtual ~ModuleFileSystem();
// Called before render is available
bool Awake(pugi::xml_node& config);
// Called before quitting
bool CleanUp();
// Utility functions
bool AddPath(const char* path_or_zip, const char* mount_point = NULL);
bool Exists(const char* file) const;
bool IsDirectory(const char* file) const;
const char* GetSaveDirectory() const
{
return "save/";
}
// Open for Read/Write
unsigned int Load(const char* file, char** buffer) const;
SDL_RWops* Load(const char* file) const;
unsigned int Save(const char* file, const char* buffer, unsigned int size) const;
private:
};
#endif // __ModuleFileSystem_H__