Skip to content

Commit

Permalink
allow product selection when specifying VR mode
Browse files Browse the repository at this point in the history
fixes #123
  • Loading branch information
rfvgyhn committed Apr 3, 2024
1 parent 53b3e43 commit 146367c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

This error happens intermittently with Steam licenses.

### Breaking changes
- `/vr` no longer implies `/autorun`. This allows for users to select a game version while also specifying VR mode.

If you relied on this behavior, you'll need to append `/autorun` to your launch options going forward.

## [0.9.0] - 2023-09-12

### New Features
Expand Down
2 changes: 1 addition & 1 deletion src/MinEdLauncher/Settings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ let parseArgs defaults (findCbLaunchDir: Platform -> Result<string,string>) (arg
| "-epicapp", Some id -> { s with Platform = epicArg (AppId id) }
| "/oculus", Some nonce -> { s with Platform = Oculus nonce; ForceLocal = true }
| "/restart", PosDouble delay -> { s with Restart = delay * 1000. |> int64 |> Some }
| "/vr", _ -> { s with DisplayMode = Vr; AutoRun = true }
| "/vr", _ -> { s with DisplayMode = Vr }
| "/novr", _ -> { s with DisplayMode = Pancake }
| "/autorun", _ -> { s with AutoRun = true }
| "/autoquit", _ -> { s with AutoQuit = true }
Expand Down
2 changes: 1 addition & 1 deletion tests/Settings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let tests =
test "Matches /vr" {
let settings = parse [| "/vr" |]
Expect.equal settings.DisplayMode Vr ""
Expect.equal settings.AutoRun true "VR mode should autorun the game"
Expect.equal settings.AutoRun false "VR mode should only autorun the game if /autorun is specified"
}
test "Matches /novr" {
let settings = parse [| "/novr" |]
Expand Down

0 comments on commit 146367c

Please sign in to comment.