summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-25 21:24:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-25 21:24:03 +0300
commitccbe98de667cd332f48d43f05f598cf4551d882d (patch)
tree22f364e85e15aabe672b14594c7774ebe537b7d8
parent8e6ab562dd62383d191806e88548e89b4d0a9d65 (diff)
downloadplus-ccbe98de667cd332f48d43f05f598cf4551d882d.tar.gz
plus-ccbe98de667cd332f48d43f05f598cf4551d882d.tar.bz2
plus-ccbe98de667cd332f48d43f05f598cf4551d882d.tar.xz
plus-ccbe98de667cd332f48d43f05f598cf4551d882d.zip
Initiate video detection on previous versions.
-rw-r--r--src/client.cpp8
-rw-r--r--src/defaults.cpp2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index f6b5c8a89..b42dd51c6 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -537,6 +537,8 @@ void Client::createWindows()
void Client::initGraphics()
{
+ checkConfigVersion();
+
#if defined(USE_OPENGL)
#if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
if (!mOptions.safeMode && mOptions.test.empty()
@@ -547,7 +549,6 @@ void Client::initGraphics()
#endif
#endif
- checkConfigVersion();
#if defined(WIN32) || defined(__APPLE__)
if (config.getBoolValue("centerwindow"))
setEnv("SDL_VIDEO_CENTERED", "1");
@@ -2953,7 +2954,10 @@ void Client::checkConfigVersion()
if (version < 7)
config.setValue("download-music", true);
- config.setValue("cfgver", 7);
+ if (version < 8)
+ config.deleteKey("videodetected");
+
+ config.setValue("cfgver", 8);
}
Window *Client::openErrorDialog(const std::string &header,
diff --git a/src/defaults.cpp b/src/defaults.cpp
index a6e458905..d9aa415eb 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -348,7 +348,7 @@ DefaultsData* getConfigDefaults()
AddDEF("uselonglivesprites", false);
AddDEF("uselonglivesounds", true);
AddDEF("screenDensity", 0);
- AddDEF("cfgver", 7);
+ AddDEF("cfgver", 8);
AddDEF("enableDebugLog", false);
AddDEF("doubleClick", true);
AddDEF("useDiagonalSpeed", true);