diff options
Diffstat (limited to 'src/levelinfo.cpp')
-rw-r--r-- | src/levelinfo.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/levelinfo.cpp b/src/levelinfo.cpp index d5ef8e7..4d80492 100644 --- a/src/levelinfo.cpp +++ b/src/levelinfo.cpp @@ -1,5 +1,25 @@ #include "levelinfo.h"
+dDvdLoader_c s_levelInfoLoader;
+bool s_levelInfoLoaded = false;
+
+dLevelInfo_c dLevelInfo_c::s_info;
+
+bool LoadLevelInfo() {
+ if (s_levelInfoLoaded)
+ return true;
+
+ void *data = s_levelInfoLoader.load("/NewerRes/LevelInfo.bin");
+ if (data) {
+ dLevelInfo_c::s_info.load(data);
+ s_levelInfoLoaded = true;
+ return true;
+ }
+
+ return false;
+}
+
+
void dLevelInfo_c::load(void *buffer) {
data = (header_s*)buffer;
|