Tidied up

This commit is contained in:
Silent 2017-11-30 18:19:43 +01:00
parent ff823f1eb9
commit 70efc863c8

View file

@ -2271,7 +2271,7 @@ BOOL InjectDelayedPatches_10()
Patch<const void*>(0x4E9F38, &fSteamRadioNameSizeX); Patch<const void*>(0x4E9F38, &fSteamRadioNameSizeX);
} }
if ( int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"ColouredZoneNames", -1, wcModulePath); INIoption != -1 ) if ( const int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"ColouredZoneNames", -1, wcModulePath); INIoption != -1 )
{ {
// Coloured zone names // Coloured zone names
bColouredZoneNames = INIoption != 0; bColouredZoneNames = INIoption != 0;
@ -2373,7 +2373,7 @@ BOOL InjectDelayedPatches_10()
// Fix directional light position // Fix directional light position
if ( int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"DirectionalFromSun", -1, wcModulePath); INIoption != -1 ) if ( const int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"DirectionalFromSun", -1, wcModulePath); INIoption != -1 )
{ {
bUseAaronSun = INIoption != 0; bUseAaronSun = INIoption != 0;
@ -2490,9 +2490,7 @@ BOOL InjectDelayedPatches_10()
} }
#ifndef NDEBUG #ifndef NDEBUG
{ if ( const int QPCDays = GetPrivateProfileIntW(L"Debug", L"AddDaysToQPC", 0, wcModulePath); QPCDays != 0 )
const int QPCDays = GetPrivateProfileIntW(L"Debug", L"AddDaysToQPC", 0, wcModulePath);
if ( QPCDays != 0 )
{ {
using namespace FakeQPC; using namespace FakeQPC;
@ -2502,7 +2500,6 @@ BOOL InjectDelayedPatches_10()
Patch( 0x8580C8, &FakeQueryPerformanceCounter ); Patch( 0x8580C8, &FakeQueryPerformanceCounter );
} }
}
#endif #endif
return FALSE; return FALSE;