@@ -85,8 +85,8 @@ void Settings::LoadDefaults()
8585 // global
8686 // {
8787 // 0 = ask user at start, 1 = enabled, 2 = always ask
88- global.submit_debug_data = 0 ;
89- global.use_upnp = false ;
88+ global.submitDebugData = 0 ;
89+ global.useUPNP = false ;
9090 global.smartCursor = true ;
9191 global.debugMode = false ;
9292 global.showGFInfo = false ;
@@ -107,7 +107,7 @@ void Settings::LoadDefaults()
107107 }
108108 video.framerate = 0 ; // Special value for HW vsync
109109 video.vbo = true ;
110- video.shared_textures = SHARED_TEXTURES_DEFAULT;
110+ video.sharedTextures = SHARED_TEXTURES_DEFAULT;
111111 video.guiScale = 0 ; // special value indicating automatic selection
112112 // }
113113
@@ -140,12 +140,12 @@ void Settings::LoadDefaults()
140140 lobby.name = System::getUserName ();
141141 lobby.portraitIndex = 0 ;
142142 lobby.password .clear ();
143- lobby.save_password = false ;
143+ lobby.savePassword = false ;
144144 // }
145145
146146 // server
147147 // {
148- server.last_ip .clear ();
148+ server.lastIP .clear ();
149149 server.localPort = 3665 ;
150150 server.ipv6 = false ;
151151 // }
@@ -155,7 +155,7 @@ void Settings::LoadDefaults()
155155
156156 // interface
157157 // {
158- interface.autosave_interval = 0 ;
158+ interface.autosaveInterval = 0 ;
159159 interface.mapScrollMode = MAP_SCROLL_MODE_DEFAULT;
160160 interface.enableWindowPinning = false ;
161161 interface.windowSnapDistance = 8 ;
@@ -173,7 +173,7 @@ void Settings::LoadIngameDefaults()
173173{
174174 // ingame
175175 // {
176- ingame.scale_statistics = false ;
176+ ingame.scaleStatistics = false ;
177177 ingame.showBQ = false ;
178178 ingame.showNames = false ;
179179 ingame.showProductivity = false ;
@@ -230,8 +230,8 @@ void Settings::Load()
230230 if (iniGlobal->getValue (" gameversion" ) != rttr::version::GetRevision ())
231231 s25util::warning (" Your application version has changed - please recheck your settings!" );
232232
233- global.submit_debug_data = iniGlobal->getIntValue (" submit_debug_data" );
234- global.use_upnp = iniGlobal->getBoolValue (" use_upnp" );
233+ global.submitDebugData = iniGlobal->getIntValue (" submit_debug_data" );
234+ global.useUPNP = iniGlobal->getBoolValue (" use_upnp" );
235235 global.smartCursor = iniGlobal->getValue (" smartCursor" , true );
236236 global.debugMode = iniGlobal->getValue (" debugMode" , false );
237237 global.showGFInfo = iniGlobal->getValue (" showGFInfo" , false );
@@ -253,7 +253,7 @@ void Settings::Load()
253253 }
254254 video.framerate = iniVideo->getValue (" framerate" , 0 );
255255 video.vbo = iniVideo->getBoolValue (" vbo" );
256- video.shared_textures = iniVideo->getBoolValue (" shared_textures" );
256+ video.sharedTextures = iniVideo->getBoolValue (" shared_textures" );
257257 video.guiScale = iniVideo->getValue (" gui_scale" , 0 );
258258 // };
259259
@@ -289,7 +289,7 @@ void Settings::Load()
289289 lobby.name = iniLobby->getValue (" name" );
290290 lobby.portraitIndex = iniLobby->getIntValue (" portrait_index" );
291291 lobby.password = iniLobby->getValue (" password" );
292- lobby.save_password = iniLobby->getBoolValue (" save_password" );
292+ lobby.savePassword = iniLobby->getBoolValue (" save_password" );
293293 // }
294294
295295 if (lobby.name .empty ())
@@ -302,7 +302,7 @@ void Settings::Load()
302302
303303 // server
304304 // {
305- server.last_ip = iniServer->getValue (" last_ip" );
305+ server.lastIP = iniServer->getValue (" last_ip" );
306306 boost::optional<uint16_t > port = validate::checkPort (iniServer->getValue (" local_port" ));
307307 server.localPort = port.value_or (3665 );
308308 server.ipv6 = iniServer->getBoolValue (" ipv6" );
@@ -329,7 +329,7 @@ void Settings::Load()
329329
330330 // interface
331331 // {
332- interface.autosave_interval = iniInterface->getIntValue (" autosave_interval" );
332+ interface.autosaveInterval = iniInterface->getIntValue (" autosave_interval" );
333333 try
334334 {
335335 interface.mapScrollMode = static_cast <MapScrollMode>(iniInterface->getIntValue (" map_scroll_mode" ));
@@ -381,7 +381,7 @@ void Settings::LoadIngame()
381381 throw std::runtime_error (" Missing section" );
382382 // ingame
383383 // {
384- ingame.scale_statistics = iniIngame->getBoolValue (" scale_statistics" );
384+ ingame.scaleStatistics = iniIngame->getBoolValue (" scale_statistics" );
385385 ingame.showBQ = iniIngame->getBoolValue (" show_building_quality" );
386386 ingame.showNames = iniIngame->getBoolValue (" show_names" );
387387 ingame.showProductivity = iniIngame->getBoolValue (" show_productivity" );
@@ -439,8 +439,8 @@ void Settings::Save()
439439 // {
440440 iniGlobal->setValue (" version" , VERSION);
441441 iniGlobal->setValue (" gameversion" , rttr::version::GetRevision ());
442- iniGlobal->setValue (" submit_debug_data" , global.submit_debug_data );
443- iniGlobal->setValue (" use_upnp" , global.use_upnp );
442+ iniGlobal->setValue (" submit_debug_data" , global.submitDebugData );
443+ iniGlobal->setValue (" use_upnp" , global.useUPNP );
444444 iniGlobal->setValue (" smartCursor" , global.smartCursor );
445445 iniGlobal->setValue (" debugMode" , global.debugMode );
446446 iniGlobal->setValue (" showGFInfo" , global.showGFInfo );
@@ -455,7 +455,7 @@ void Settings::Save()
455455 iniVideo->setValue (" displayMode" , rttr::enum_cast (video.displayMode ));
456456 iniVideo->setValue (" framerate" , video.framerate );
457457 iniVideo->setValue (" vbo" , video.vbo );
458- iniVideo->setValue (" shared_textures" , video.shared_textures );
458+ iniVideo->setValue (" shared_textures" , video.sharedTextures );
459459 iniVideo->setValue (" gui_scale" , video.guiScale );
460460 // };
461461
@@ -485,12 +485,12 @@ void Settings::Save()
485485 iniLobby->setValue (" name" , lobby.name );
486486 iniLobby->setValue (" portrait_index" , lobby.portraitIndex );
487487 iniLobby->setValue (" password" , lobby.password );
488- iniLobby->setValue (" save_password" , lobby.save_password );
488+ iniLobby->setValue (" save_password" , lobby.savePassword );
489489 // }
490490
491491 // server
492492 // {
493- iniServer->setValue (" last_ip" , server.last_ip );
493+ iniServer->setValue (" last_ip" , server.lastIP );
494494 iniServer->setValue (" local_port" , server.localPort );
495495 iniServer->setValue (" ipv6" , server.ipv6 );
496496 // }
@@ -504,7 +504,7 @@ void Settings::Save()
504504
505505 // interface
506506 // {
507- iniInterface->setValue (" autosave_interval" , interface.autosave_interval );
507+ iniInterface->setValue (" autosave_interval" , interface.autosaveInterval );
508508 iniInterface->setValue (" map_scroll_mode" , static_cast <int >(interface.mapScrollMode ));
509509 iniInterface->setValue (" enable_window_pinning" , interface.enableWindowPinning );
510510 iniInterface->setValue (" window_snap_distance" , interface.windowSnapDistance );
@@ -542,7 +542,7 @@ void Settings::SaveIngame()
542542
543543 // ingame
544544 // {
545- iniIngame->setValue (" scale_statistics" , ingame.scale_statistics );
545+ iniIngame->setValue (" scale_statistics" , ingame.scaleStatistics );
546546 iniIngame->setValue (" show_building_quality" , ingame.showBQ );
547547 iniIngame->setValue (" show_names" , ingame.showNames );
548548 iniIngame->setValue (" show_productivity" , ingame.showProductivity );
0 commit comments