Skip to content

Commit

Permalink
Fix saving rain settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiyansKing committed Nov 30, 2021
1 parent fad14d7 commit 9980c13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions D3D11Engine/GothicAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3826,6 +3826,8 @@ XRESULT GothicAPI::SaveMenuSettings( const std::string& file ) {

WritePrivateProfileStringA( "Display", "StretchWindow", std::to_string( s.StretchWindow ? TRUE : FALSE ).c_str(), ini.c_str() );
WritePrivateProfileStringA( "Display", "UIScale", std::to_string( s.GothicUIScale ).c_str(), ini.c_str() );
WritePrivateProfileStringA( "Display", "Rain", std::to_string( s.EnableRain ? TRUE : FALSE ).c_str(), ini.c_str() );
WritePrivateProfileStringA( "Display", "RainEffects", std::to_string( s.EnableRainEffects ? TRUE : FALSE ).c_str(), ini.c_str() );

WritePrivateProfileStringA( "Shadows", "EnableShadows", std::to_string( s.EnableShadows ? TRUE : FALSE ).c_str(), ini.c_str() );
WritePrivateProfileStringA( "Shadows", "EnableSoftShadows", std::to_string( s.EnableSoftShadows ? TRUE : FALSE ).c_str(), ini.c_str() );
Expand Down Expand Up @@ -3934,6 +3936,8 @@ XRESULT GothicAPI::LoadMenuSettings( const std::string& file ) {
s.HDR_Monitor = GetPrivateProfileBoolA( "Display", "HDR_Monitor", false, ini );
s.StretchWindow = GetPrivateProfileBoolA( "Display", "StretchWindow", false, ini );
s.GothicUIScale = GetPrivateProfileFloatA( "Display", "UIScale", 1.0f, ini );
s.EnableRain = GetPrivateProfileBoolA( "Display", "Rain", true, ini );
s.EnableRainEffects = GetPrivateProfileBoolA( "Display", "RainEffects", true, ini );

s.EnableSMAA = GetPrivateProfileBoolA( "SMAA", "Enabled", false, ini );
s.SharpenFactor = GetPrivateProfileFloatA( "SMAA", "SharpenFactor", 0.30f, ini );
Expand Down

0 comments on commit 9980c13

Please sign in to comment.