File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments