From 20e72b2e9dfea6070ebcdb44a7ca5a4a958320bd Mon Sep 17 00:00:00 2001 From: deve Date: Tue, 5 Jul 2016 12:18:43 +0200 Subject: [PATCH] Show better text in old driver popup --- src/main.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f90d76a55..b91517c02 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -466,7 +466,7 @@ void setupRaceStart() Log::warn("main", "Kart '%s' is unknown so will use the " "default kart.", UserConfigParams::m_default_kart.c_str()); - race_manager->setPlayerKart(0, + race_manager->setPlayerKart(0, UserConfigParams::m_default_kart.getDefaultValue()); } else @@ -784,7 +784,7 @@ int handleCmdLine() NetworkConfig::get()->setIsWAN(); STKHost::create(); Log::info("main", "Creating a WAN server '%s'.", s.c_str()); - } + } if (CommandLine::has("--lan-server", &s)) { NetworkConfig::get()->setServerName(core::stringw(s.c_str())); @@ -792,7 +792,7 @@ int handleCmdLine() NetworkConfig::get()->setIsLAN(); STKHost::create(); Log::info("main", "Creating a LAN server '%s'.", s.c_str()); - } + } if (CommandLine::has("--server-password", &s)) { NetworkConfig::get()->setPassword(s); @@ -1404,9 +1404,15 @@ int main(int argc, char *argv[] ) { if (UserConfigParams::m_old_driver_popup) { + #ifdef USE_GLES2 + irr::core::stringw version = "OpenGL ES 3.0"; + #else + irr::core::stringw version = "OpenGL 3.1"; + #endif MessageDialog *dialog = new MessageDialog(_("Your OpenGL version appears to be too old. Please verify " - "if an update for your video driver is available. SuperTuxKart requires OpenGL 3.1 or better."), + "if an update for your video driver is available. SuperTuxKart requires %s or better.", + version), /*from queue*/ true); GUIEngine::DialogQueue::get()->pushDialog(dialog); }