CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.41k stars 65 forks source link

[Request]: Launch Argument for Collapse #454

Closed Mylloon closed 7 months ago

Mylloon commented 7 months ago

Is your request related to a problem?

No

How is the feature request related to the problem?

No response

Describe your proposed solution

Having something like /Genshin argument when starting Collapse, and it will directly load the "Genshin Impact" screen

Describe alternatives you've considered

I don't know any alternatives

Additional context

No response

gablm commented 7 months ago

Hello!

Collapse already has a command-line argument which lets you load a specific game/region on launch. Its syntax is the following:

CollapseLauncher.exe open -g <game name/id>

While specifying a game is required, you can also optionally:

Note that if the game/region name has spaces, the name must be enclosed by quotes. If you need any help or have any doubts about the usage of this argument, don't hesitate to ask!

EDIT: As an example, if you wanted to launch Collapse in last opened Genshin Impact region, you should use:

CollapseLauncher.exe open -g "Genshin Impact"
Mylloon commented 7 months ago

Thanks, I didn't know that! Do you know where I can find the list of ID for the games and region?

gablm commented 7 months ago

The "id"s follow the order the game/region appears in the launcher selector (starting at 0).

For example: Games: 0 -> HI3, 1 -> GI, 2 -> HSR Regions for Genshin Impact: 0 -> Global, 1 -> Mainland China, 2 -> Bilibili

Mylloon commented 7 months ago

Thanks!