summaryrefslogtreecommitdiff
path: root/src/randtiles.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-10 03:02:02 +0200
committerTreeki <treeki@gmail.com>2012-10-10 03:02:02 +0200
commitc1c7f656efdecd6da7923de46eb113699f256ff6 (patch)
tree40669ad810c1e347d504712b379e7ea6809e036c /src/randtiles.cpp
parent22189497b8711cb7766e4329096be8f47bcf4851 (diff)
downloadkamek-c1c7f656efdecd6da7923de46eb113699f256ff6.tar.gz
kamek-c1c7f656efdecd6da7923de46eb113699f256ff6.zip
bit of refactoring, and added PreGame
Diffstat (limited to '')
-rw-r--r--src/randtiles.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/randtiles.cpp b/src/randtiles.cpp
index da86a92..f1b2392 100644
--- a/src/randtiles.cpp
+++ b/src/randtiles.cpp
@@ -93,16 +93,20 @@ RandomTileData *RandomTileData::instance = 0;
dDvdLoader_c RandTileLoader;
+// This is a bit hacky but I'm lazy
+bool LoadLevelInfo();
+
extern "C" bool RandTileLoadHook() {
// OSReport("Trying to load...");
void *buf = RandTileLoader.load("/NewerRes/RandTiles.bin");
+ bool LIresult = LoadLevelInfo();
if (buf == 0) {
// OSReport("Failed.\n");
return false;
} else {
// OSReport("Successfully loaded RandTiles.bin [%p].\n", buf);
RandomTileData::instance = (RandomTileData*)buf;
- return true;
+ return LIresult;
}
}