diff options
author | Treeki <treeki@gmail.com> | 2012-10-10 03:02:02 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-10 03:02:02 +0200 |
commit | c1c7f656efdecd6da7923de46eb113699f256ff6 (patch) | |
tree | 40669ad810c1e347d504712b379e7ea6809e036c /src/randtiles.cpp | |
parent | 22189497b8711cb7766e4329096be8f47bcf4851 (diff) | |
download | kamek-c1c7f656efdecd6da7923de46eb113699f256ff6.tar.gz kamek-c1c7f656efdecd6da7923de46eb113699f256ff6.zip |
bit of refactoring, and added PreGame
Diffstat (limited to '')
-rw-r--r-- | src/randtiles.cpp | 6 |
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;
}
}
|