mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
Fix Render Mode and CRT Filter settings to be sticky between game launches
This commit is contained in:
parent
2a0c742b1a
commit
f47a46abd2
2 changed files with 17 additions and 3 deletions
|
@ -1407,9 +1407,11 @@ public:
|
|||
float originalVolume;
|
||||
// RB begin
|
||||
//int originalShadowMapping; // TODO use for quality of shadowmaps?
|
||||
int originalRenderMode;
|
||||
float originalAmbientBrightness;
|
||||
int originalSSAO;
|
||||
int originalPostProcessing;
|
||||
float originalAmbientBrightness;
|
||||
int originalCRTPostFX;
|
||||
// RB end
|
||||
|
||||
idList<vidMode_t> modeList;
|
||||
|
|
|
@ -435,9 +435,11 @@ void idMenuScreen_Shell_SystemOptions::idMenuDataSource_SystemSettings::LoadData
|
|||
originalVolume = s_volume_dB.GetFloat();
|
||||
// RB begin
|
||||
//originalShadowMapping = r_useShadowMapping.GetInteger();
|
||||
originalSSAO = r_useSSAO.GetInteger();
|
||||
originalRenderMode = r_renderMode.GetInteger();
|
||||
originalAmbientBrightness = r_forceAmbient.GetFloat();
|
||||
originalSSAO = r_useSSAO.GetInteger();
|
||||
originalPostProcessing = r_useFilmicPostFX.GetInteger();
|
||||
originalCRTPostFX = r_useCRTPostFX.GetInteger();
|
||||
// RB end
|
||||
|
||||
const int fullscreen = r_fullscreen.GetInteger();
|
||||
|
@ -890,6 +892,16 @@ bool idMenuScreen_Shell_SystemOptions::idMenuDataSource_SystemSettings::IsDataCh
|
|||
// return true;
|
||||
//}
|
||||
|
||||
if( originalRenderMode != r_renderMode.GetInteger() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if( originalAmbientBrightness != r_forceAmbient.GetFloat() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if( originalSSAO != r_useSSAO.GetInteger() )
|
||||
{
|
||||
return true;
|
||||
|
@ -900,7 +912,7 @@ bool idMenuScreen_Shell_SystemOptions::idMenuDataSource_SystemSettings::IsDataCh
|
|||
return true;
|
||||
}
|
||||
|
||||
if( originalAmbientBrightness != r_forceAmbient.GetFloat() )
|
||||
if( originalCRTPostFX != r_useCRTPostFX.GetInteger() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue