retroarch_get_config
Retrieve a single RetroArch configuration value by parameter name via the Network Control Interface to access filesystem paths and settings without manually parsing the config file.
Instructions
PURPOSE: Read a single RetroArch configuration parameter by name via the NCI's GET_CONFIG_PARAM command. USAGE: Use to discover RetroArch's filesystem paths and selected settings without parsing retroarch.cfg yourself. For run-state (playing/paused, loaded ROM) use retroarch_get_status instead — this tool only reads static config values. NOTE: RetroArch whitelists which params are exposed via NCI; unknown / non-whitelisted names return an error from RetroArch even though they may exist in retroarch.cfg. The screenshot output directory is NOT exposed (see retroarch_screenshot). BEHAVIOR: No side effects — pure read. Transport: RetroArch's Network Control Interface (NCI) over UDP (default 127.0.0.1:55355, requires network_cmd_enable = true in retroarch.cfg). Returns an error if the named param isn't in RetroArch's NCI whitelist, the value contains characters that break the line-based reply parser, or the UDP query times out. RETURNS: Single line 'NAME = VALUE'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Config parameter name (case-sensitive). Commonly-supported values: `savefile_directory`, `savestate_directory`, `system_directory`, `cache_directory`, `log_dir`, `runtime_log_directory`, `netplay_nickname`, `video_fullscreen`. RetroArch's exact whitelist varies by version; if a name returns an error, it isn't exposed via the NCI on this build. `screenshot_directory` is NOT exposed by RetroArch — there is no NCI way to query the screenshot output path. |