@@ -199,7 +199,7 @@ void CCustomPreferences::Edit()
199199 // save changed options
200200}
201201// ---------------------------------------------------------------------------
202-
202+ extern bool bAllowLogCommands;
203203void CCustomPreferences::Load (CInifile* I)
204204{
205205 psDeviceFlags.flags = R_U32_SAFE (" editor_prefs" ," device_flags" , psDeviceFlags.flags );
@@ -243,6 +243,8 @@ void CCustomPreferences::Load(CInifile* I)
243243 start_w = R_U32_SAFE (" render" , " w" , 1280 );
244244 start_h = R_U32_SAFE (" render" , " h" ,800 );
245245 start_maximized = R_BOOL_SAFE (" render" , " maximized" , false );
246+
247+ bAllowLogCommands = R_BOOL_SAFE (" windows" , " log" , false );
246248 // read recent list
247249 for (u32 i=0 ; i<scene_recent_count; i++){
248250 shared_str fn = R_STRING_SAFE (" editor_prefs" ,xr_string ().sprintf (" recent_files_%d" ,i).c_str (),shared_str (" " ) );
@@ -255,6 +257,7 @@ void CCustomPreferences::Load(CInifile* I)
255257 }
256258 sWeather = R_STRING_SAFE (" editor_prefs" , " weather" , shared_str (" " ) );
257259 // load shortcuts
260+
258261 LoadShortcuts (I);
259262
260263 UI->LoadSettings (I);
@@ -309,6 +312,7 @@ void CCustomPreferences::Save(CInifile* I)
309312 I->w_bool (" render" , " maximized" , EDevice.dwMaximized );
310313 I->w_u32 (" render" , " w" , EDevice.dwWidth );
311314 I->w_u32 (" render" , " h" , EDevice.dwHeight );
315+ I->w_bool (" windows" , " log" , bAllowLogCommands);
312316 // load shortcuts
313317 SaveShortcuts (I);
314318 UI->SaveSettings (I);
0 commit comments