bsnes/docs/interface/higan-cli.md

65 lines
1.8 KiB
Markdown
Raw Normal View History

2017-07-24 06:03:24 +00:00
# Synopsis
2017-08-25 08:40:20 +00:00
> higan [*\-\-fullscreen*] [*GAME*]
2017-07-24 06:03:24 +00:00
# Description
When launched with `--fullscreen`,
2017-08-25 08:40:20 +00:00
higan will automatically enter fullscreen mode
when it starts,
otherwise it starts in windowed mode.
This is not much use unless you also specify `GAME`,
2017-07-24 06:03:24 +00:00
because you won't be able to load a game
2017-08-25 08:40:20 +00:00
until you exit fullscreen mode
2017-07-24 06:03:24 +00:00
by pressing the "Toggle Fullscreen"
[hotkey](higan-settings.md#hotkeys).
2017-07-24 06:03:24 +00:00
2017-08-25 08:40:20 +00:00
When `GAME` is not given,
higan starts with no game loaded.
When `GAME` is the path to an existing
2017-07-24 06:03:24 +00:00
[game folder](../concepts/game-folders.md)
for any supported console,
2017-08-25 08:40:20 +00:00
that game will automatically be loaded
after higan starts.
2017-07-24 06:03:24 +00:00
2017-08-25 08:40:20 +00:00
When `GAME` is the path to a ROM file
2017-07-24 06:03:24 +00:00
for any supported console,
it will be imported into a game folder in
[the Game Library](../concepts/game-library.md),
2017-08-25 08:40:20 +00:00
and loaded from there after higan starts.
When `GAME` is of the form `REGION|PATH`
(that is,
a region code,
a vertical bar (`|`),
and a path to a game folder or ROM file)
higan will load the game at `PATH`
into the `REGION` variant of the appropriate console,
rather than detecting which variant the game expects.
This is the command-line equivalent
of choosing a region from
the drop-down in the bottom-right of the filesystem browser window
when you [load a game from the game library](../guides/import.md#regular-games).
The list of region codes differs from console to console,
so load a game from the library
and check the list
before loading it from the command-line.
2017-07-24 06:03:24 +00:00
# Examples
Play a previously-imported copy of Super Mario World
2017-08-25 08:40:20 +00:00
in fullscreen (assuming Linux defaults):
2017-07-24 06:03:24 +00:00
```sh
2017-08-25 08:40:20 +00:00
higan --fullscreen "$HOME/Emulation/Super Famicom/Super Mario World.sfc"
2017-07-24 06:03:24 +00:00
```
Play a previously-imported copy of Sonic the Hedgehog 3,
forcing higan to emulate a Japanese Mega Drive:
```sh
higan "NTSC-J|$HOME/Emulation/Mega Drive/Sonic the Hedgehog 3.md"
```