switchres.ini override - ZFEbHVUE/Batocera-CRT-Script GitHub Wiki
Switchres reads configuration files in this order, from most specific to least specific:
-
Per-core override
/userdata/system/configs/retroarch/config/<core_name>/<core_name>.switchres.ini -
Global RetroArch override
/userdata/system/configs/retroarch/switchres.ini -
System default
/etc/switchres.ini
-
If a
switchres.iniexists in
/userdata/system/configs/retroarch/config/<core_name>/
that file is used. -
If there is no per-core file, but there is a global file in
/userdata/system/configs/retroarch/
the global file is used. -
If neither override exists, the default file in
/etc/switchres.ini
is used.
- A global override in
/userdata/system/configs/retroarch/applies to all cores. - A per-core override in
/userdata/system/configs/retroarch/config/<core_name>/always takes priority over the global override and the system default. - Replace
<core_name>with the actual core folder name (for exampleVBA-M,PCSX-ReARMed,Genesis Plus GX).
Follow these steps to apply a switchres.ini override for a specific core in RetroArch:
- Choose the following core in Emulation Station:
-
Core:
PCSX-ReARMed
-
Core:
- Launch any game from Emulation Station that uses the selected core.
- While the game is running, open the Quick Menu using:
-
[HOTKEY] + South buttonorShift+F1.
-
- Navigate to:
- Override -> Save Content Directory Override
- This will create a configuration folder for the core.
- Exit the emulator and navigate to the newly created folder for the core:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/
- In the folder, find the file:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/psx.cfg
- Open the file, delete its contents to make it blank, and then save it.
- Use the following terminal command to copy the
switchres.inifile:cp /etc/switchres.ini /userdata/system/configs/retroarch/config/PCSX-ReARMed
- Rename the copied file to:
psx.switchres.ini
- Open the
psx.switchres.inifile and apply the desired settings.
- Locate the line:
dotclock_min 0 - Change it to:
dotclock_min 25 - This will enable super resolution (e.g., 2560).
- Locate the line:
monitor arcade_31 - This will set the monitor profile to
arcade_31, ensuring all games are displayed in 31kHz progressive resolution.
- Locate the section:
# Allow interlaced modes (existing or generated) - Change the value of
interlaceto:interlace 0 - This will turn off interlaced resolutions generated by
switchres.
Once completed, the switchres.ini override will apply to all games using the selected core, ensuring your custom settings are in effect.
Follow these steps to enable super resolution for specific games in RetroArch:
- Create a new sub-folder under
/userdata/roms/psx/and name itsuper_res.
- Place the games you want to force a super resolution for into this folder:
/userdata/roms/psx/super_res
- For the games in the
super_resfolder, select:-
Core:
PCSX-ReARMed
-
Core:
- Launch any game from Emulation Station that is in the
super_resfolder.
- While the game is running, open the Quick Menu using:
-
[HOTKEY] + South buttonorShift+F1.
-
- Navigate to:
- Override -> Save Content Directory Override
- This will create a configuration folder for the core.
- Exit the emulator and navigate to the newly created folder for the core:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/
- Inside this folder, you will find a file named:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/super_res.cfg
- Open the file, delete its contents to make it blank, and then save it.
- Use the following terminal command to copy the
switchres.inifile:cp /etc/switchres.ini /userdata/system/configs/retroarch/config/PCSX-ReARMed
- Rename the copied file to:
super_res.switchres.ini
- Open the
super_res.switchres.inifile and make the following change:- Locate the line:
dotclock_min 0 - Change it to:
dotclock_min 25
- Locate the line:
This change will enable the super resolution (e.g., 2560).
Once completed, the super resolution settings will apply to all games in the super_res folder.
If you want to adjust the geometry settings for specific games, follow these steps:
- Create a new sub-folder under
/userdata/roms/psx/and name itcapcom.
- Place the games you want to adjust the geometry for into the
capcomfolder:/userdata/roms/psx/capcom
- For the games in the
capcomfolder, select:-
Core:
PCSX-ReARMed
-
Core:
- Launch any game from Emulation Station that is in the
capcomfolder.
- While the game is running, open the Quick Menu using:
-
[HOTKEY] + South buttonorShift+F1.
-
- Navigate to:
- Override -> Save Content Directory Override
- This will create a configuration folder for the core.
- Exit the emulator and navigate to the newly created folder for the core:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/
- Inside this folder, you will find a file named:
/userdata/system/configs/retroarch/config/PCSX-ReARMed/capcom.cfg
- Open the file, delete its contents to make it blank, and then save it.
- Use the following terminal command to copy the
switchres.inifile:cp /etc/switchres.ini /userdata/system/configs/retroarch/config/PCSX-ReARMed
- Rename the copied file to:
capcom.switchres.ini
- Open the file and make changes to the following lines:
h_size 1.0 h_shift 0 v_shift 0
-
H-size [0.5 - 1.5]: Controls the horizontal size of the image (
h_sizeoption). -
H-shift [positive or negative, in pixels]: Controls the horizontal position of the image (
h_shiftoption). -
V-shift [positive or negative, in lines]: Controls the vertical position of the image (
v_shiftoption).
Note: Adjustments for V-size are not possible via software.
Here are some typical ranges for geometry adjustments on a 15kHz CRT:
-
H-Size Positive:
(1.0) 1.1 -> 1.12 -
H-Size Negative:
(1.0) 0.99 -> 0.94 -
H-Shift Right:
(0) 1 -> 25 -
H-Shift Left:
(0) -1 -> -25 -
V-Shift Up:
(0) -1 -> -9 -
V-Shift Down:
(0) 1 -> 9
Note: Values outside these ranges may not work properly.
Once completed, the geometry adjustments will apply to all games in the capcom folder.