mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Tidied up
This commit is contained in:
parent
ff823f1eb9
commit
70efc863c8
1 changed files with 8 additions and 11 deletions
|
@ -2271,7 +2271,7 @@ BOOL InjectDelayedPatches_10()
|
|||
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
|
||||
bColouredZoneNames = INIoption != 0;
|
||||
|
@ -2373,7 +2373,7 @@ BOOL InjectDelayedPatches_10()
|
|||
|
||||
|
||||
// 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;
|
||||
|
||||
|
@ -2490,9 +2490,7 @@ BOOL InjectDelayedPatches_10()
|
|||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
{
|
||||
const int QPCDays = GetPrivateProfileIntW(L"Debug", L"AddDaysToQPC", 0, wcModulePath);
|
||||
if ( QPCDays != 0 )
|
||||
if ( const int QPCDays = GetPrivateProfileIntW(L"Debug", L"AddDaysToQPC", 0, wcModulePath); QPCDays != 0 )
|
||||
{
|
||||
using namespace FakeQPC;
|
||||
|
||||
|
@ -2502,7 +2500,6 @@ BOOL InjectDelayedPatches_10()
|
|||
|
||||
Patch( 0x8580C8, &FakeQueryPerformanceCounter );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue