Skip to content

Commit a7711fc

Browse files
authored
Final patch for game launch failure (#4154)
1 parent 2e18170 commit a7711fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Client/core/CCore.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ void CCore::ApplyCoreInitSettings()
17831783

17841784
// Users with the default skin will be switched to the 2023 version by replacing "Default" with "Default 2023".
17851785
// The "Default 2023" GUI skin was introduced in commit 2d9e03324b07e355031ecb3263477477f1a91399.
1786-
if (revision < 21486)
1786+
if (revision && revision < 21486)
17871787
{
17881788
auto skin = CVARS_GET_VALUE<std::string>("current_skin");
17891789

@@ -1800,12 +1800,14 @@ void CCore::ApplyCoreInitSettings()
18001800
SetPriorityClass(process, priorities[priority]);
18011801

18021802
bool affinity = CVARS_GET_VALUE<bool>("process_cpu_affinity");
1803+
18031804
if (!affinity)
18041805
return;
18051806

18061807
DWORD_PTR mask;
18071808
DWORD_PTR sys;
18081809
BOOL result = GetProcessAffinityMask(process, &mask, &sys);
1810+
18091811
if (result)
18101812
SetProcessAffinityMask(process, mask & ~1);
18111813
}

0 commit comments

Comments
 (0)