We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a45214 commit 91612d9Copy full SHA for 91612d9
pkg/game_launcher/game_launcher.go
@@ -9,16 +9,16 @@ import (
9
"github.com/rs/zerolog/log"
10
)
11
12
-type LaunchDir int
13
-type LaunchType int
+type LaunchDir string
+type LaunchType string
14
type HookWhen string
15
16
const (
17
- LaunchDirInstallDir LaunchDir = iota
18
- LaunchDirBinaryDir
+ LaunchDirInstallDir LaunchDir = "install-dir"
+ LaunchDirBinaryDir LaunchDir = "binary-dir"
19
20
- LaunchTypeLaunchAndJoin LaunchType = iota
21
- LaunchTypeLaunchOnly
+ LaunchTypeLaunchAndJoin LaunchType = "launch-and-join"
+ LaunchTypeLaunchOnly LaunchType = "launch-only"
22
23
HookWhenAlways HookWhen = "always"
24
HookWhenPreLaunch HookWhen = "pre-launch"
0 commit comments