about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-12-15 13:21:58 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-12-15 13:21:58 +0100
commitd8c40c166203698cb9694df12be2bfd9a61a3316 (patch)
tree16071f30278e6a0305ec8967e68f717415682a93 /src/tools
parent7c0180c3b9cf1e71e7b778166d81b3d4aa6c1f6d (diff)
downloadbox64-d8c40c166203698cb9694df12be2bfd9a61a3316.tar.gz
box64-d8c40c166203698cb9694df12be2bfd9a61a3316.zip
Limit the number of CPU Core repported to 64 when running wine (or proton)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/my_cpuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c
index d80a038e..258fb990 100644
--- a/src/tools/my_cpuid.c
+++ b/src/tools/my_cpuid.c
@@ -83,6 +83,8 @@ int getNCpu()
 {
     if(!nCPU)
         grabNCpu();
+    if(box64_wine && nCPU>64)
+        return 64;
     return nCPU;
 }