use dedicated env variable to disable threaded opt. on linux
This commit is contained in:
parent
8aea1f7d15
commit
ccd50ba033
|
@ -143,11 +143,11 @@ Insert section about the installer here
|
||||||
promises.push(
|
promises.push(
|
||||||
readAsset("/instance.cfg").then((data) => {
|
readAsset("/instance.cfg").then((data) => {
|
||||||
if (platform === "linux") {
|
if (platform === "linux") {
|
||||||
data = data.replaceAll("$use_wrapper_command", "true")
|
data = data.replaceAll("$override_env", "true")
|
||||||
data = data.replaceAll("$wrapper_command", "env __GL_THREADED_OPTIMIZATIONS=0")
|
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 {
|
} else {
|
||||||
data = data.replaceAll("$use_wrapper_command", "false")
|
data = data.replaceAll("$override_env", "false")
|
||||||
data = data.replaceAll("$wrapper_command", "")
|
data = data.replaceAll("$env", "@Variant(\0\0\0\b\0\0\0\0)")
|
||||||
}
|
}
|
||||||
zip.file("instance.cfg", data)
|
zip.file("instance.cfg", data)
|
||||||
})
|
})
|
||||||
|
|
|
@ -6,7 +6,7 @@ CustomGLFWPath=
|
||||||
CustomOpenALPath=
|
CustomOpenALPath=
|
||||||
EnableFeralGamemode=false
|
EnableFeralGamemode=false
|
||||||
EnableMangoHud=false
|
EnableMangoHud=false
|
||||||
Env=@Variant(\0\0\0\b\0\0\0\0)
|
Env=$env
|
||||||
ExportAuthor=
|
ExportAuthor=
|
||||||
ExportName=
|
ExportName=
|
||||||
ExportOptionalFiles=true
|
ExportOptionalFiles=true
|
||||||
|
@ -37,9 +37,9 @@ MinMemAlloc=512
|
||||||
MinecraftWinHeight=480
|
MinecraftWinHeight=480
|
||||||
MinecraftWinWidth=854
|
MinecraftWinWidth=854
|
||||||
OnlineFixes=false
|
OnlineFixes=false
|
||||||
OverrideCommands=$use_wrapper_command
|
OverrideCommands=false
|
||||||
OverrideConsole=false
|
OverrideConsole=false
|
||||||
OverrideEnv=false
|
OverrideEnv=$override_env
|
||||||
OverrideGameTime=false
|
OverrideGameTime=false
|
||||||
OverrideJava=false
|
OverrideJava=false
|
||||||
OverrideJavaArgs=false
|
OverrideJavaArgs=false
|
||||||
|
@ -64,7 +64,7 @@ UseDiscreteGpu=true
|
||||||
UseNativeGLFW=false
|
UseNativeGLFW=false
|
||||||
UseNativeOpenAL=false
|
UseNativeOpenAL=false
|
||||||
UseZink=false
|
UseZink=false
|
||||||
WrapperCommand="$wrapper_command"
|
WrapperCommand=
|
||||||
iconKey=default
|
iconKey=default
|
||||||
lastLaunchTime=1717870111279
|
lastLaunchTime=1717870111279
|
||||||
lastTimePlayed=5229
|
lastTimePlayed=5229
|
||||||
|
|
Loading…
Reference in a new issue