From 535c68fac1af9e755f864a7da246acb2a2334db3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 30 Oct 2019 20:13:43 +0100 Subject: [PATCH] - fixed Shadow Warrior startup. It runs to the menu, unfortunately key input is broken. --- source/sw/src/game.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 763663b1d..bda084ae4 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -701,26 +701,6 @@ LoadLevel(const char *filename) } } -void -LoadImages(const char *filename) -{ - short ndx; - FILE *fin; - - if (TileFiles.LoadArtFile(filename) == -1) - { - TerminateGame(); -#ifdef RENDERTYPEWIN - { - wm_msgbox(apptitle, "Art not found. Please check your GRP file."); - } -#else - printf("Art not found. Please check your GRP file.\n"); -#endif - exit(-1); - } -} - void LoadDemoRun(void) { short i; @@ -968,7 +948,7 @@ InitGame(int32_t argc, char const * const * argv) //_outtext("\n\n\n\n\n\n\n\n"); //AnimateCacheCursor(); buildputs("Loading sound and graphics...\n"); - LoadImages("tiles%03d.art"); + TileFiles.LoadArtSet("tiles%03d.art"); // Now free it up for later use /* @@ -2828,6 +2808,7 @@ GameIntro(void) void Control(int32_t argc, char const * const * argv) { + cacheInitBuffer(50'000'000); InitGame(argc, argv);