From a45daeda3633bdf25267a0186b39618269dca970 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Mon, 4 Apr 2016 07:32:15 -0400 Subject: XML folder changing --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 951304f..95d4e05 100644 --- a/main.cpp +++ b/main.cpp @@ -154,6 +154,8 @@ Menu *currentMenu; Menu optionsMenu; Menu pauseMenu; +std::string xmlFolder; + extern WorldWeather weather; extern int fadeIntensity; // ui.cpp @@ -227,7 +229,7 @@ int main(int argc, char *argv[]){ * textures for the entities and stuff. */ - if(!(IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG)){ + if(!(IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG) | !(IMG_Init(IMG_INIT_JPG) & IMG_INIT_JPG)){ std::cout << "Could not init image libraries! Error: " << IMG_GetError() << std::endl; return -1; } @@ -389,7 +391,9 @@ int main(int argc, char *argv[]){ fadeIntensity = 250; + std::cout << "emem" << std::endl; initEverything(); + std::cout << "meme" << std::endl; if(!currentWorld){ std::cout<<"currentWorld == NULL!"<