RetroArch/docs/retroarch.1

282 lines
11 KiB
Groff
Raw Normal View History

2012-04-22 09:40:36 +00:00
.\" retroarch.1:
2011-01-15 14:52:25 +00:00
.TH "RETROARCH" "1" "November 1, 2011" "RETROARCH" "System Manager's Manual: retroarch"
2011-01-15 14:52:25 +00:00
.SH NAME
retroarch \- The reference frontend for the libretro API.
2011-01-15 14:52:25 +00:00
.SH SYNOPSIS
2012-04-22 09:40:36 +00:00
\fBretroarch\fR [rom file] [OPTIONS]...
2011-01-15 14:52:25 +00:00
.SH "DESCRIPTION"
\fBretroarch\fR is the reference frontend for the libretro API.
libretro is an abstraction of a game system, and can be implemented by any frontend.
The libretro API is designed for games and emulators.
2012-04-30 19:46:57 +00:00
\fBretroarch\fR focuses on exposing needed functionality for the game system through the use of command line and configuration files.
It also features a simple built-in UI called RGUI.
2011-01-15 14:52:25 +00:00
.SH "EXAMPLE COMMANDLINE"
.TP
\fBLoad a ROM, using a specific libretro core and config file.\fR
retroarch --config ~/.config/retroarch/retroarch.cfg --libretro /path/to/libretro/core.so /path/to/rom.rom --verbose
.TP
\fBNo command line options will start RetroArch in RGUI mode.\fR
retroarch
.TP
\fBStart RetroArch in RGUI, with verbose logging.\fR
retroarch --menu --verbose
.SH "RGUI"
RGUI is the built-in GUI system for RetroArch. It is aimed at being controlled with a gamepad only.
.SH "DEFAULT CONTROLS"
By default, only keyboard input is accepted.
2011-01-15 14:52:25 +00:00
.SH "GENERAL OPTIONS"
.TP
\fB[rom file]\fR
If no rom file path is defined on the command line, \fBretroarch\fR will try to load a core with no rom. This will only work with some libretro cores.
\fBretroarch\fR use uncompressed ROMs, but can uncompress roms in the .zip/deflate format if support for it is compiled in.
ROM types supported depend on the libretro implementation used.
2011-01-15 14:52:25 +00:00
.TP
\fB--help, -h\fR
Prints help text.
2013-04-14 14:24:19 +00:00
.TP
\fB--menu\fR
Starts directly in in-game menu (RGUI) if enabled.
Does not require a ROM or libretro implementation to be set.
These can be loaded afterwards in the menu.
2013-04-14 20:41:43 +00:00
If no arguments are passed to retroarch, it is equivalent to calling retroarch with this as only argument.
2013-04-14 14:24:19 +00:00
2011-11-15 20:15:12 +00:00
.TP
\fB--features\fR
2012-04-22 09:40:36 +00:00
Prints available features compiled into RetroArch, then exits.
2011-11-15 20:15:12 +00:00
.TP
2012-04-30 19:46:57 +00:00
\fB-L PATH, --libretro PATH\fR
Path to a libretro implementation which is to be used.
2011-11-15 20:15:12 +00:00
This option will override any setting in a config file.
2012-04-30 19:46:57 +00:00
This option is only available if RetroArch is compiled with dynamic libretro loading.
2011-11-15 20:15:12 +00:00
If PATH is a directory, RetroArch will try to find the first implementation that claims to support
the extension of the ROM used, and use that libretro implementation.
If two or more different implementations claim to support a certain ROM extension, there might be collisions.
2011-01-15 14:52:25 +00:00
.TP
\fB--save PATH, -s PATH\fR
Overrides the path used for save ram (*.srm).
Without this flag, the save ram path will be inferred from the rom path name, and put in the same directory as the rom file with the extention replaced with '.srm'.
2012-04-22 09:40:36 +00:00
If PATH is a directory, RetroArch will treat this as the save file directory, where the save file name will be inferred from the rom name.
2011-01-15 14:52:25 +00:00
.TP
2011-08-22 15:44:37 +00:00
\fB--savestate PATH, -S PATH\fR
2011-01-15 14:52:25 +00:00
Overrides the path used for save states.
Without this flag, the save state path will be inferred from the rom path name, and put in the same directory as the rom file with the extention replace with '.state'.
2012-04-22 09:40:36 +00:00
If PATH is a directory, RetroArch will treat this as the save state directory, where the state file name will be inferred from the rom name.
2012-04-30 19:46:57 +00:00
Do note that save states are bound to the libretro implementation being used. Using a different libretro could invalidate the save state file.
2011-01-15 14:52:25 +00:00
.TP
\fB--fullscreen, -f\fR
2012-04-22 09:40:36 +00:00
Always starts RetroArch in fullscreen. Disregards settings in configuration file.
2011-01-15 14:52:25 +00:00
.TP
\fB--config PATH, -c PATH\fR
2012-04-22 09:40:36 +00:00
Sets the configuration file path. \fBretroarch\fR will use this path to load the configuration file.
Should this not be defined, \fBretroarch\fR will look in platform specific paths to attempt finding the config file.
/etc/retroarch.cfg (when installed), or retroarch.cfg in the source tarball serves as a skeleton configuration file.
/etc/retroarch.cfg should serve as a skeleton config only, and not used as a config file.
2011-01-15 14:52:25 +00:00
.IP
Unix-like systems will look in $XDG_CONFIG_HOME/retroarch/retroarch.cfg first. If $XDG_CONFIG_HOME is not defined, it is assumed to be $HOME/.config as per specification. Then it will try $HOME/.retroarch.cfg. If both paths fail, RetroArch will try to create a new, default config file in $XDG_CONFIG_HOME/retroarch/retroarch.cfg (or the $HOME/.config default for $XDG_CONFIG_HOME). If no configuration is found at all, default settings will be assumed.
RetroArch will not attempt to load the skeleton config /etc/retroarch.cfg.
A configuration file does not need to define every possible option, only those which should be overridden.
If config_save_on_exit = true is set in the config file, RetroArch will overwrite the config file on exit. Settings can be changed from within RGUI.
If RetroArch overwrites a config file, formatting, comments, etc will be lost.
If RetroArch creates a default config file, it will have config_save_on_exit set automatically.
2011-01-15 14:52:25 +00:00
.IP
2012-04-22 09:40:36 +00:00
Windows will look in retroarch.cfg in same folder where retroarch.exe resides.
A default config file will also be created in the same manner as Unix.
2011-01-15 14:52:25 +00:00
2012-09-10 22:13:29 +00:00
.TP
\fB--appendconfig PATH\fR
Appends a different set of config files to the config file loaded in -c (or default).
Multiple config files are delimited by ','.
Every config file will be appended in order where the key-value pairs of the next config file takes priority over the old ones.
2011-01-15 14:52:25 +00:00
.TP
\fB--gameboy PATH, -g PATH\fR
Path to a Nintendo Game Boy ROM. If this flag is set, the Super Game Boy subsystem will be activated. The Super Game Boy BIOS needs to be loaded as the normal rom.
.TP
\fB--bsx PATH, -b PATH\fR
Path to BS-X rom. Load BS-X BIOS as the regular rom.
2011-01-15 14:52:25 +00:00
When using BS-X, save ram paths will be inferred from the BS-X BIOS path, not BS-X rom path.
.TP
\fB--bsxslot PATH, -B PATH\fR
Path to BS-X slotted rom. Load BS-X BIOS as the regular rom.
When using BS-X, save ram paths will be inferred from the BS-X BIOS path, not BS-X rom path.
.TP
\fB--sufamiA PATH\fR
Path to A slot in Sufami Turbo. Load Sufami Turbo BIOS as regular rom.
When using Sufami, save ram paths will be inferred from the Sufami BIOS path, not slot paths.
.TP
\fB--sufamiB PATH\fR
Path to B slot in Sufami Turbo. Load Sufami Turbo BIOS as regular rom.
When using Sufami, save ram paths will be inferred from the Sufami BIOS path, not slot paths.
.TP
\fB--mouse PORT, -m PORT\fR
2012-08-16 19:20:38 +00:00
Connects a mouse into port number PORT. Possible values for PORT are 1 to 8.
If set explicitly here, overrides config file for that port.
2011-01-15 14:52:25 +00:00
2011-11-18 17:03:24 +00:00
.TP
2011-06-19 09:11:04 +00:00
\fB--nodevice PORT, -N PORT\fR
2012-08-16 19:20:38 +00:00
Disconnects an input device from port number PORT. Possible values for PORT are 1 to 8. This may be needed for some odd games to run properly.
If set explicitly here, overrides config file for that port.
2011-06-19 09:11:04 +00:00
2011-01-15 14:52:25 +00:00
.TP
\fB--scope, -p\fR
2012-08-16 19:20:38 +00:00
Connects a Super Scope into port 2 of an emulated SNES. It is controlled with your mouse.
If set explicitly here, overrides config file for that port.
2011-01-15 14:52:25 +00:00
.TP
\fB--justifier, -j\fR
2012-08-16 19:20:38 +00:00
Connects a Konami Justifier into port 2 of an emulated SNES. It is controlled with your mouse.
If set explicitly here, overrides config file for that port.
2011-01-15 14:52:25 +00:00
.TP
\fB--justifiers, -J\fR
2012-08-16 19:20:38 +00:00
Connects two Konami Justifier into port 2 of an emulated SNES. Currently, only player 1 is controlled with the mouse.
If set explicitly here, overrides config file for that port.
2011-01-15 14:52:25 +00:00
.TP
\fB--multitap, -4\fR
2012-08-16 19:20:38 +00:00
Connects a four-way multitap into an emulated SNES. This allows for up to 5 players.
If set explicitly here, overrides config file for that port.
2012-08-16 19:20:38 +00:00
.TP
\fB--dualanalog PORT, -A PORT\fR
Connects a DualAnalog controller into port PORT. Possible values are 1 to 8.
If set explicitly here, overrides config file for that port.
2011-01-15 14:52:25 +00:00
.TP
\fB--record PATH, -r PATH\fR
2011-09-01 08:07:07 +00:00
Activates video recording of gameplay into PATH. Using .mkv extension is recommended.
2011-11-30 11:09:22 +00:00
Codecs used are (FFV1 or H264 RGB lossless (x264))/FLAC, suitable for processing the material further.
2011-01-15 14:52:25 +00:00
.TP
\fB--recordconfig PATH\fR
Sets path to a config file for use during FFmpeg recording.
2011-10-06 23:36:52 +00:00
.TP
\fB--size WIDTHxHEIGHT\fR
Allows specifying the exact output width and height of FFmpeg recording. This option will override any configuration settings.
The video input is scaled with point filtering before being encoded at the correct size.
2011-02-02 11:51:17 +00:00
.TP
\fB--bsvplay PATH, -P PATH\fR
Play back a movie recorded in the .bsv format (bSNES). Cart ROM and movie file need to correspond.
2012-04-30 19:46:57 +00:00
It also requires to play back with the same libretro backend that was used for recording.
2011-02-02 11:51:17 +00:00
2011-11-18 17:03:24 +00:00
.TP
2011-11-20 19:19:05 +00:00
\fB--bsvrecord PATH, -R PATH\fR
Start recording a .bsv video to PATH immediately after startup.
.TP
\fB--sram-mode MODE, -M MODE\fR
2011-11-18 17:03:24 +00:00
MODE designates how to handle SRAM.
The format of the second parameter is {no,}load-{no,}save.
These two boolean values tell if SRAM loading and SRAM saving should take place.
2011-11-20 19:19:05 +00:00
Note that noload-save implies that the SRAM will be overwritten with new data.
2011-11-18 17:03:24 +00:00
2011-01-15 14:52:25 +00:00
.TP
\fB--verbose, -v\fR
Activates verbose logging.
2011-02-13 17:47:48 +00:00
.TP
\fB--host, -H\fR
Be the host of netplay. Waits until a player connects. The host will always assume player 1.
2011-02-15 14:42:29 +00:00
.TP
2011-02-13 17:47:48 +00:00
\fB--connect SERVER, -C SERVER\fR
Connect to a host of netplay. Will always assume player 2.
2011-02-15 14:42:29 +00:00
.TP
\fB--frames FRAMES, -F FRAMES\fR
Sync frames to use when using netplay. More frames allow for more latency, but requires more CPU power.
Set FRAMES to 0 to have perfect sync. 0 frames is only suitable for LAN. Defaults to 0.
2011-02-18 13:49:15 +00:00
.TP
\fB--port PORT\fR
Network port used for netplay. This defaults to 55435. This option affects both TCP and UDP.
2012-01-11 18:22:18 +00:00
.TP
\fB--spectate\fR
If netplay is used, it will go into a spectator mode.
Spectator mode allows one host to live stream game playback to multiple clients.
Essentially, clients receive a live streamed BSV movie file.
Clients can connect and disconnect at any time.
Clients thus cannot interact as player 2.
For spectating mode to work, both host and clients will need to use this flag.
.TP
\fB--command CMD\fR
Sends a command over UDP to an already running RetroArch application, and exit.
The command is formatted as "COMMAND;HOST;PORT".
HOST and PORT are both optional. "COMMAND;HOST" will set PORT to
"network_cmd_port" default setting.
If only "COMMAND" is used, HOST and PORT will be assumed to be "localhost" and "network_cmd_port" respectively.
The available commands are listed if "COMMAND" is invalid.
2012-01-21 17:12:42 +00:00
.TP
\fB--nick NICK\fR
Pick a nickname for use with netplay.
This is purely cosmetic, and only serves to help players identify each other.
.TP
\fB--ups PATCH, -U PATCH\fR
Attempts to apply an UPS patch to the current ROM image. No files are altered.
2012-04-22 09:40:36 +00:00
If this flag is not specified, RetroArch will look for a .ups file with same basename as ROM specified.
2011-08-17 22:24:57 +00:00
.TP
\fB--bps PATCH\fR
Attempts to apply a BPS patch to the current ROM image. No files are altered.
2012-04-22 09:40:36 +00:00
If this flag is not specified, RetroArch will look for a .bps file with same basename as ROM specified.
2011-08-17 22:24:57 +00:00
2012-03-20 22:08:34 +00:00
.TP
\fB--ips PATCH\fR
Attempts to apply a IPS patch to the current ROM image. No files are altered.
2012-04-22 09:40:36 +00:00
If this flag is not specified, RetroArch will look for a .ips file with same basename as ROM specified.
Note that RetroArch cannot perform any error checking if patching was successful due to how IPS works.
2012-03-20 22:08:34 +00:00
.TP
\fB--no-patch\fR
Disables all kinds of ROM patching.
2011-06-24 11:29:30 +00:00
.TP
\fB--xml MAP, -X MAP\fR
Specifies path to XML memory map for the given ROM.
2012-04-22 09:40:36 +00:00
If this flag is not specified, RetroArch will look for a .xml file with same basename as ROM specified.
2011-06-24 11:29:30 +00:00
2011-04-23 12:47:50 +00:00
.TP
\fB-D, --detach\fR
Detach from the current console. This is currently only relevant for Microsoft Windows.
.SH "SEE ALSO"
2012-04-22 09:40:36 +00:00
\fBretroarch-joyconfig\fR(1)