Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Client/core/CCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ void CCore::ApplyCoreInitSettings()

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

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

bool affinity = CVARS_GET_VALUE<bool>("process_cpu_affinity");

if (!affinity)
return;

DWORD_PTR mask;
DWORD_PTR sys;
BOOL result = GetProcessAffinityMask(process, &mask, &sys);

if (result)
SetProcessAffinityMask(process, mask & ~1);
}
Expand Down
Loading