use dedicated env variable to disable threaded opt. on linux

This commit is contained in:
moehreag 2024-06-18 13:58:37 +02:00
parent 8aea1f7d15
commit ccd50ba033
2 changed files with 8 additions and 8 deletions

View file

@ -143,11 +143,11 @@ Insert section about the installer here
promises.push(
readAsset("/instance.cfg").then((data) => {
if (platform === "linux") {
data = data.replaceAll("$use_wrapper_command", "true")
data = data.replaceAll("$wrapper_command", "env __GL_THREADED_OPTIMIZATIONS=0")
data = data.replaceAll("$override_env", "true")
data = data.replaceAll("$env", "Env=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x36\0_\0_\0G\0L\0_\0T\0H\0R\0\x45\0\x41\0\x44\0\x45\0\x44\0_\0O\0P\0T\0I\0M\0I\0Z\0\x41\0T\0I\0O\0N\0S\0\0\0\n\0\0\0\x2\0\x30)")
} else {
data = data.replaceAll("$use_wrapper_command", "false")
data = data.replaceAll("$wrapper_command", "")
data = data.replaceAll("$override_env", "false")
data = data.replaceAll("$env", "@Variant(\0\0\0\b\0\0\0\0)")
}
zip.file("instance.cfg", data)
})

View file

@ -6,7 +6,7 @@ CustomGLFWPath=
CustomOpenALPath=
EnableFeralGamemode=false
EnableMangoHud=false
Env=@Variant(\0\0\0\b\0\0\0\0)
Env=$env
ExportAuthor=
ExportName=
ExportOptionalFiles=true
@ -37,9 +37,9 @@ MinMemAlloc=512
MinecraftWinHeight=480
MinecraftWinWidth=854
OnlineFixes=false
OverrideCommands=$use_wrapper_command
OverrideCommands=false
OverrideConsole=false
OverrideEnv=false
OverrideEnv=$override_env
OverrideGameTime=false
OverrideJava=false
OverrideJavaArgs=false
@ -64,7 +64,7 @@ UseDiscreteGpu=true
UseNativeGLFW=false
UseNativeOpenAL=false
UseZink=false
WrapperCommand="$wrapper_command"
WrapperCommand=
iconKey=default
lastLaunchTime=1717870111279
lastTimePlayed=5229