Skip to content

Commit

Permalink
Add 'launcher' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholastay committed Sep 25, 2023
1 parent d217b3f commit 73f75ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ortlinde.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ const (
)

func main() {
launchDirect := true
if len(os.Args) > 1 {
if os.Args[1] == "launcher" {
launchDirect = false
}
}

fmt.Println(`
[[ Ortlinde: Simple SDVX コナステ Launcher ]]
Expand Down Expand Up @@ -64,9 +71,8 @@ func main() {
fmt.Println("[SDVX] Finding game folder...")
gameFolder := determineOrAskSdvxFolder()

// TODO: Allow customising direct or not
fmt.Println("[SDVX] Launching game...")
launchSdvx(gameFolder, sdvxToken, true)
launchSdvx(gameFolder, sdvxToken, launchDirect)

fmt.Println("\n\n << Thanks for using Ortlinde! See you next play :) >>\n")
}
Expand Down

0 comments on commit 73f75ee

Please sign in to comment.