Skip to content

Commit

Permalink
allow for dxvk usage and installation only during player routine
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Aug 3, 2023
1 parent a34246e commit c5c20ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 0 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ func LoadConfigFile() Configuration {
config.Env["PATH"] = filepath.Join(config.WineRoot, "bin") + ":" + os.Getenv("PATH")
}

if config.Dxvk {
// Tells wine to use the DXVK DLLs
config.Env["WINEDLLOVERRIDES"] += "d3d10core=n;d3d11=n;d3d9=n;dxgi=n"
}

for name, value := range config.Env {
os.Setenv(name, value)
}
Expand Down
8 changes: 7 additions & 1 deletion roblox.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ func RobloxPlayer(args ...string) {
rblx.GetVersion("version")

rblx.Setup()

DxvkStrap()
if config.Dxvk {
// Tells wine to use the DXVK DLLs
config.Env["WINEDLLOVERRIDES"] += "d3d10core=n;d3d11=n;d3d9=n;dxgi=n"
}

rblx.ApplyFFlags("Client")
rblx.Execute("RobloxPlayerBeta.exe", args)
RobloxKillPfx()
Expand All @@ -200,7 +207,6 @@ func RobloxStudio(args ...string) {
rblx.PackageDests = StudioPackages()
rblx.SetupURL(channel)
rblx.GetVersion("versionQTStudio")
Config.Dxvk = false // Dxvk doesnt work under Studio

rblx.Setup()
rblx.ApplyFFlags("Studio")
Expand Down

0 comments on commit c5c20ca

Please sign in to comment.