Merge branch 'master' of https://gitea.sustancia.synology.me/JailDoctor/thepool
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "console.h"
|
||||
#include <string.h>
|
||||
#include "config.h"
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include "actor.h"
|
||||
#include "room.h"
|
||||
@@ -98,6 +98,10 @@ void loadConfig()
|
||||
const int value = SDL_atoi( file::getConfigValue(nombotons[i]).c_str() );
|
||||
if (value != 0) config::definePadBtn(i, value);
|
||||
}
|
||||
|
||||
if (strcmp(file::getConfigValue("kiosk").c_str(), "yes")==0) config::setKioskMode(true);
|
||||
if (strcmp(file::getConfigValue("infinitelives").c_str(), "yes")==0) config::setInifiniteLives(true);
|
||||
|
||||
}
|
||||
|
||||
void game::init()
|
||||
@@ -106,7 +110,7 @@ void game::init()
|
||||
|
||||
if (editor::isDevMode()) {
|
||||
draw::init("The Pool", 520, 240, zoom);
|
||||
SDL_ShowCursor(true);
|
||||
SDL_ShowCursor();
|
||||
} else {
|
||||
loadConfig();
|
||||
draw::init("The Pool", 320, 240, zoom, fullscreen);
|
||||
|
||||
Reference in New Issue
Block a user