Skip to content

Commit

Permalink
cmd/vinegar: minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Dec 6, 2024
1 parent 7d8c491 commit 8e933cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func NewBinary(bt clientsettings.BinaryType, cfg *config.Config) (*Binary, error
}

pfx := wine.New(BinaryPrefixDir(bt), bcfg.WineRoot)
os.Setenv("GAMEID", "ulwgl-roblox")

return &Binary{
Presence: rp,
Expand Down Expand Up @@ -193,6 +192,10 @@ func (b *Binary) Init() error {
firstRun = true
}

if c := b.Prefix.Wine(""); c.Err != nil {
return fmt.Errorf("wine: %w", c.Err)
}

if firstRun && !sysinfo.CPU.AVX {
b.Splash.Dialog(DialogNoAVX, false, "")
slog.Warn("Running roblox without AVX, Roblox will most likely fail to run!")
Expand All @@ -219,7 +222,7 @@ func (b *Binary) Init() error {
}

if err != nil {
return err
return fmt.Errorf("pfx init: %w", err)
}

if err := b.InstallWebView(); err != nil {
Expand Down

0 comments on commit 8e933cc

Please sign in to comment.