22 #ifndef TITANIC_FILES_MANAGER_H 23 #define TITANIC_FILES_MANAGER_H 25 #include "common/hashmap.h" 26 #include "titanic/core/list.h" 27 #include "titanic/support/screen_manager.h" 31 enum ResourceFlag { FLAG_COMPRESSED = 1 };
40 struct ResourceEntry {
45 ResourceEntry() : _offset(0), _size(0), _flags(0) {}
46 ResourceEntry(uint offset, uint
size, uint flags) :
47 _offset(offset), _size(size), _flags(flags) {}
54 ResourceHash _resources;
66 bool loadResourceIndex();
72 _gameManager = gameManager;
78 static bool fileExists(
const CString &name);
83 bool scanForFile(
const CString &name);
103 void preload(
const CString &name);
Definition: files_manager.h:39
size_type size() const
Definition: list.h:198
Definition: files_manager.h:36
Definition: screen_manager.h:49
Definition: game_manager.h:48
void setGameManager(CGameManager *gameManager)
Definition: files_manager.h:71