diff --git a/cmd/vinegar/binary.go b/cmd/vinegar/binary.go index 554866ea..718861a7 100644 --- a/cmd/vinegar/binary.go +++ b/cmd/vinegar/binary.go @@ -96,7 +96,6 @@ func Binary(bt roblox.BinaryType, cfg *config.Config, pfx *wine.Prefix, args ... } } - if strings.HasPrefix(strings.Join(args, " "), "roblox-player:1") { args = bootstrapper.ParsePlayerURI(args[0]) } else if strings.HasPrefix(strings.Join(args, " "), "roblox-studio:1") { diff --git a/roblox/bootstrapper/uri.go b/roblox/bootstrapper/uri.go index 73592708..76d475ef 100644 --- a/roblox/bootstrapper/uri.go +++ b/roblox/bootstrapper/uri.go @@ -28,7 +28,7 @@ func ParsePlayerURI(launchURI string) (args []string) { key, val := pair[0], pair[1] if key == "channel" { - log.Println("Roblox is attempting to set channel to %s from launch URI, ignoring", val) + log.Printf("Roblox is attempting to set channel to %s from launch URI, ignoring", val) continue } @@ -62,7 +62,7 @@ func ParseStudioURI(launchURI string) (args []string) { key, val := pair[0], pair[1] if key == "channel" { - log.Println("Roblox is attempting to set channel to %s from launch URI, ignoring", val) + log.Printf("Roblox is attempting to set channel to %s from launch URI, ignoring", val) continue } diff --git a/roblox/bootstrapper/uri_test.go b/roblox/bootstrapper/uri_test.go index c80c210b..04508837 100644 --- a/roblox/bootstrapper/uri_test.go +++ b/roblox/bootstrapper/uri_test.go @@ -25,23 +25,17 @@ func TestPlayerURIParsed(t *testing.T) { "--gloc", "en_us", "-channel", "Ganesh", } - channelWant := "Ganesh" - - args, channel := ParsePlayerURI(uri) + args := ParsePlayerURI(uri) for i, val := range args { if val != argsWant[i] { t.Fatalf("launch player uri parsing failed, key %s, want key match for %s", val, argsWant[i]) } } - - if channel != channelWant { - t.Fatalf("launch player uri parsing failed, %v, want channel match for %s", channel, channelWant) - } } func TestPlayerURIInvalidKey(t *testing.T) { - args, _ := ParsePlayerURI("roblox-player:1+launchmode:play+channel") + args := ParsePlayerURI("roblox-player:1+launchmode:play+channel") if len(args) == 1 && args[0] != "--app" { t.Fail()