diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-11 19:58:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-11 23:36:49 +0300 |
commit | b6bf8e607146202b82b7943147fc5a99d4c46a60 (patch) | |
tree | 0465526af0ebefee944382af2869f08bfbcc7c94 /src/progs | |
parent | dbf65ef9c85f1b1b93fc9666bda31c5e5171b8c7 (diff) | |
download | plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.gz plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.bz2 plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.tar.xz plus-b6bf8e607146202b82b7943147fc5a99d4c46a60.zip |
Add option to set sdl logging level.
Only for SDL2.
Diffstat (limited to 'src/progs')
-rw-r--r-- | src/progs/dyecmd/client.cpp | 1 | ||||
-rw-r--r-- | src/progs/manaplus/client.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index ccc8a51af..41bb7f3cb 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -188,6 +188,7 @@ void Client::gameInit() if (settings.options.test.empty()) ConfigManager::backupConfig("config.xml"); ConfigManager::initConfiguration(); + SDL::setLogLevel(config.getIntValue("sdlLogLevel")); setPathsDefaults(paths); initPaths(); logger->log("init 4"); diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index af46d8683..a9735f43e 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -310,6 +310,7 @@ void Client::gameInit() if (settings.options.test.empty()) ConfigManager::backupConfig("config.xml"); ConfigManager::initConfiguration(); + SDL::setLogLevel(config.getIntValue("sdlLogLevel")); settings.init(); Net::loadIgnorePackets(); setPathsDefaults(paths); |