mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 21:09:34 -10:00
Refresh All walked and checksummed a mixed folder once for every playlist a Fully Automatic scan of it had filled. It now reads every playlist's settings before it runs one, keeping only its name, folder and settings, and loads each playlist again when it runs, so it still holds one playlist at a time. The load turns the saved settings into text, so grouping compares strings and stats no folder on the main thread. Playlists named after an installed database, matched strictly against it alone with no DAT file, saved with no other database name and otherwise equal settings, overrides applied, share one group scan. The group runs at its first playlist's place under one line and task title naming the folder and the playlists, and the summary still counts playlists. Any other playlist, and every --scan-refresh, runs alone as before.
365 lines
15 KiB
Plaintext
365 lines
15 KiB
Plaintext
.\" retroarch.6:
|
|
|
|
.TH "RETROARCH" "6" "January 20, 2025" "RETROARCH" "System Manager's Manual: retroarch"
|
|
|
|
.SH NAME
|
|
|
|
retroarch \- The reference frontend for the libretro API.
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBretroarch\fR [rom file(s)] [OPTIONS]...
|
|
|
|
.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, emulators and multimedia.
|
|
\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.
|
|
|
|
.SH "EXAMPLE COMMANDLINE"
|
|
|
|
.TP
|
|
\fBLoad content, 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 menu mode.\fR
|
|
retroarch
|
|
|
|
.TP
|
|
\fBStart RetroArch in menu mode, with verbose logging.\fR
|
|
retroarch --menu --verbose
|
|
|
|
.SH "Menu"
|
|
Refers to 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.
|
|
|
|
.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 content, but can uncompress content in the .zip/deflate format if support for it is compiled in.
|
|
Content types supported depend on the libretro implementation used.
|
|
|
|
.TP
|
|
\fB--help, -h\fR
|
|
Prints help text.
|
|
|
|
.TP
|
|
\fB--menu\fR
|
|
Starts directly in in-game menu if enabled.
|
|
Does not require content or libretro implementation to be set.
|
|
These can be loaded afterwards in the menu.
|
|
If no arguments are passed to retroarch, it is equivalent to calling retroarch with this as only argument.
|
|
|
|
.TP
|
|
\fB--features\fR
|
|
Prints available features compiled into RetroArch, then exits.
|
|
|
|
.TP
|
|
\fB--cloudsync\fR
|
|
Runs a cloud sync with the configured cloud sync driver, then exits.
|
|
|
|
.TP
|
|
\fB--scan PATH\fR
|
|
Scans the folder or file PATH for content and adds it to playlists, as Manual Scan does.
|
|
Can be given more than once.
|
|
|
|
.TP
|
|
\fB--scan-refresh NAME|PATH\fR
|
|
Rescans one playlist with the scan settings it saved, as Refresh Playlist does.
|
|
NAME matches a playlist's name exactly first, then ignoring case. PATH must be in the playlist folder.
|
|
Like Refresh Playlist, it drops entries whose files are gone or whose extension the saved settings no longer include.
|
|
A playlist whose saved content folder is missing is skipped instead, so an unplugged drive does not empty it.
|
|
|
|
.TP
|
|
\fB--scan-refresh-all\fR
|
|
Does --scan-refresh for every playlist that has saved scan settings, as Refresh All Playlists does.
|
|
Playlists named after their database, matched against it alone with no DAT file, that share a content folder and settings are scanned once, under one line.
|
|
|
|
.IP
|
|
These run in the order given, and one that fails does not stop the rest.
|
|
Each prints a totals line on stdout, or its error on stderr.
|
|
An smb:// folder is read from the server set in the SMB settings and must be on the share set there, and one that cannot be read says why.
|
|
Without --menu, RetroArch exits when they are done and does not load content given on the command line.
|
|
The exit status is then 1 if any failed, 0 if any added an entry, and 2 if none added anything; a skipped playlist does not count.
|
|
With --menu, they run while the menu does.
|
|
They cannot be combined with --cloudsync or --command.
|
|
|
|
.IP
|
|
The options below set the Manual Scan settings of the --scan, --scan-refresh or --scan-refresh-all before them.
|
|
On a refresh they override the saved settings, and the refresh saves them.
|
|
A --scan without any is Fully Automatic.
|
|
|
|
.TP
|
|
\fB--scan-playlist NAME\fR
|
|
Sets Target Playlist: a database's name, or a custom playlist name. Not allowed on a refresh.
|
|
|
|
.TP
|
|
\fB--scan-database NAME|first\fR
|
|
Sets Database To Match: the database NAME, or the first database that matches.
|
|
|
|
.TP
|
|
\fB--scan-match strict|loose|none\fR
|
|
Sets Database Check.
|
|
|
|
.TP
|
|
\fB--scan-dat FILE\fR
|
|
Sets Arcade DAT File. Matching is strict unless --scan-match loose is given.
|
|
|
|
.TP
|
|
\fB--scan-core CORE\fR
|
|
Sets Default Core: a core's path, its file name (with or without _libretro and the extension) or its display name.
|
|
|
|
.TP
|
|
\fB--scan-exts EXTS\fR
|
|
Sets File Extensions, separated by commas or spaces.
|
|
|
|
.TP
|
|
\fB--scan-no-recursive, --scan-no-archives\fR
|
|
Turn off Scan Recursively and Scan Inside Archives.
|
|
|
|
.TP
|
|
\fB--scan-overwrite, --scan-validate, --scan-omit-db-ref\fR
|
|
Turn on Overwrite Existing Playlist, Validate Existing Entries and Skip Database References From Playlist.
|
|
They act only when the scan has one playlist, and --scan-overwrite only on a folder; otherwise they print a warning and are ignored.
|
|
|
|
.TP
|
|
\fB-L PATH, --libretro PATH\fR
|
|
Path to a libretro implementation which is to be used.
|
|
This option will override any setting in a config file.
|
|
This option is only available if RetroArch is compiled with dynamic libretro loading.
|
|
|
|
.TP
|
|
\fB--save PATH, -s PATH\fR
|
|
Overrides the path used for save ram (*.srm) (deprecated).
|
|
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 extension replaced with '.srm'.
|
|
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.
|
|
|
|
.TP
|
|
\fB--savestate PATH, -S PATH\fR
|
|
Overrides the path used for save states (deprecated).
|
|
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 extension replace with '.state'.
|
|
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.
|
|
Do note that save states are bound to the libretro implementation being used. Using a different libretro could invalidate the save state file.
|
|
|
|
.TP
|
|
\fB--fullscreen, -f\fR
|
|
Always starts RetroArch in fullscreen. Disregards settings in configuration file.
|
|
|
|
.TP
|
|
\fB--config PATH, -c PATH\fR
|
|
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.
|
|
|
|
.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 all fails, default settings will be assumed.
|
|
If RetroArch creates a new default config file, it will attempt to load the skeleton config file /etc/retroarch.cfg and use that as a basis.
|
|
This allows distributions to set up default paths for libretro cores, and similar things.
|
|
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 the menu.
|
|
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.
|
|
|
|
.IP
|
|
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.
|
|
|
|
.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.
|
|
|
|
The appended settings are not kept apart once loaded. Whenever the main config file is saved - on exit, if config_save_on_exit is set, or from the menu - they are written to it with everything else, and are there the next time RetroArch starts without --appendconfig.
|
|
To use an appended config for one session only, put config_save_on_exit = "false" in the appended file.
|
|
|
|
.TP
|
|
\fB--subsystem SUBSYSTEM\fR
|
|
Use a subsystem of the loaded libretro core. Multiple content files are loaded as multiple arguments.
|
|
If content is skipped, use a blank ("") command line argument.
|
|
Content must be loaded in an order which depends on the particular subsystem used.
|
|
See verbose log output to learn how a particular subsystem wants content to be loaded.
|
|
|
|
.TP
|
|
\fB--nodevice PORT, -N PORT\fR
|
|
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.
|
|
|
|
.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.
|
|
|
|
.TP
|
|
\fB--device PORT:ID, -d PORT:ID\fR
|
|
Connects a generic input device ID into port PORT. Possible values for port are 1 to 8.
|
|
If set explicitly here, overrides config file for that port.
|
|
ID is an unsigned number corresponding to the device for a libretro core.
|
|
|
|
.TP
|
|
\fB--record PATH, -r PATH\fR
|
|
Activates video recording of gameplay into PATH. Using .mkv extension is recommended.
|
|
Codecs used are (FFV1 or H264 RGB lossless (x264))/FLAC, suitable for processing the material further.
|
|
|
|
.TP
|
|
\fB--recordconfig PATH\fR
|
|
Sets path to a config file for use during recording.
|
|
|
|
.TP
|
|
\fB--size WIDTHxHEIGHT\fR
|
|
Allows specifying the exact output width and height of recording. This option will override any configuration settings.
|
|
The video input is scaled with point filtering before being encoded at the correct size.
|
|
|
|
.TP
|
|
\fB--play-replay PATH, -P PATH\fR
|
|
Play back a movie recorded in the .replay format. Cart ROM and movie file need to correspond.
|
|
It also requires to play back with the same libretro backend that was used for recording.
|
|
|
|
.TP
|
|
\fB--record-replay PATH, -R PATH\fR
|
|
Start recording a .replay video to PATH immediately after startup.
|
|
|
|
.TP
|
|
\fB--sram-mode MODE, -M MODE\fR
|
|
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.
|
|
Note that noload-save implies that the SRAM will be overwritten with new data.
|
|
|
|
.TP
|
|
\fB--verbose, -v\fR
|
|
Activates verbose logging.
|
|
|
|
.TP
|
|
\fB--host, -H\fR
|
|
Be the host of netplay. Waits until a user connects. The host will always assume user 1.
|
|
|
|
.TP
|
|
\fB--connect SERVER, -C SERVER\fR
|
|
Connect to a host of netplay. Will always assume user 2.
|
|
|
|
.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.
|
|
|
|
.TP
|
|
\fB--port PORT\fR
|
|
Network port used for netplay. This defaults to 55435. This option affects both TCP and UDP.
|
|
|
|
.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 replay movie file.
|
|
Clients can connect and disconnect at any time.
|
|
Clients thus cannot interact as user 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.
|
|
HOST and PORT are read from the end, and only where they cannot be part of a STEPS list (no space, no "|", not "checkpoint"), so such a list is sent whole.
|
|
|
|
The available commands are listed if "COMMAND" is invalid.
|
|
|
|
.TP
|
|
\fB--nick NICK\fR
|
|
Pick a nickname for use with netplay.
|
|
This is purely cosmetic, and only serves to help users identify each other.
|
|
|
|
.TP
|
|
\fB--ups PATCH, -U PATCH\fR
|
|
Attempts to apply an UPS patch to the current content image. No files are altered.
|
|
If this flag is not specified, RetroArch will look for a .ups file with same basename as content specified.
|
|
|
|
.TP
|
|
\fB--bps PATCH\fR
|
|
Attempts to apply a BPS patch to the current content image. No files are altered.
|
|
If this flag is not specified, RetroArch will look for a .bps file with same basename as content specified.
|
|
|
|
.TP
|
|
\fB--ips PATCH\fR
|
|
Attempts to apply a IPS patch to the current content image. No files are altered.
|
|
If this flag is not specified, RetroArch will look for a .ips file with same basename as content specified.
|
|
Note that RetroArch cannot perform any error checking if patching was successful due to how IPS works.
|
|
|
|
.TP
|
|
\fB--xdelta PATCH\fR
|
|
Attempts to apply an Xdelta patch to the current content image. No files are altered.
|
|
If this flag is not specified, RetroArch will look for a .xdelta file with same basename as content specified.
|
|
Only available if RetroArch was built with Xdelta support.
|
|
|
|
.TP
|
|
\fB--no-patch\fR
|
|
Disables all kinds of content patching.
|
|
|
|
.TP
|
|
\fB-D, --detach\fR
|
|
Detach from the current console. This is currently only relevant for Microsoft Windows.
|
|
|
|
.SH ENVIRONMENT
|
|
\fBretroarch\fR honors the following environment variables:
|
|
|
|
.TP
|
|
\fBLIBRETRO_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for core and info files,
|
|
overriding the value of the "libretro_directory" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_ASSETS_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for assets, overriding
|
|
the value of the "assets_directory" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_AUTOCONFIG_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for controller
|
|
auto-configuration files, overriding the value of the
|
|
"joypad_autoconfig_dir" configuration file option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_CHEATS_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for cheat files,
|
|
overriding the value of the "cheat_database_path" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_DATABASE_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for database files,
|
|
overriding the value of the "content_database_path" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_SYSTEM_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for system files,
|
|
overriding the value of the "system_directory" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_VIDEO_FILTER_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for video filters,
|
|
overriding the value of the "video_filter_dir" configuration file
|
|
option.
|
|
|
|
.TP
|
|
\fBLIBRETRO_VIDEO_SHADER_DIRECTORY\fR
|
|
Specify the directory where RetroArch looks for video shaders,
|
|
overriding the value of the "video_shader_dir" configuration file
|
|
option.
|