# Using RetroArch overrides

If you do not want to use RetroBat configuration for RetroArch global settings or shader configuration, RetroBat offers a way to automatically load the configuration and/or shader override files that you would have created in RetroArch.

### RetroArch configuration override <a href="#override-pour-les-options" id="override-pour-les-options"></a>

In RetroArch, it is possible to save a configuration override filefor a game, a content folder or a libretro core.

In order to save a configuration override file, open the RetroArch quick menu by pressing SELECT + ![](https://wiki.retrobat.org/~gitbook/image?url=https%3A%2F%2F466894649-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCgoewyw8Sagl6SNUMrCG%252Fuploads%252FcFYw1e2sB0jT0mUZIx7S%252Fimage.png%3Falt%3Dmedia%26token%3Df8809c2a-5024-4c4f-b2c3-756897352eb1\&width=300\&dpr=4\&quality=100\&sign=c3cf2a80\&sv=2) on your controller (F1 on keyboard). Perform all required RetroArch general settings, then open the "**Overrides**" menu:

<div align="left"><figure><img src="https://i.imgur.com/yyJIMcH.png" alt=""><figcaption></figcaption></figure></div>

In this menu, save the override file at the desired level (game, core, content folder):

<div align="left"><figure><img src="https://i.imgur.com/xKQ4OGt.png" alt=""><figcaption></figcaption></figure></div>

RetroArch will automatically save an override configuration file in the Core config folder:

![](https://wiki.retrobat.org/~gitbook/image?url=https%3A%2F%2Fi.imgur.com%2Fk72RIIK.png\&width=768\&dpr=4\&quality=100\&sign=bd68b21a\&sv=2)

Last, enable the override option in RetroBat [MAIN MENU > GAME SETTINGS > RETROARCH OPTIONS > EMULATION](https://wiki.retrobat.org/navigation/main-menu#game-settings)

<div align="left"><figure><img src="https://i.imgur.com/2HGsEHB.png" alt=""><figcaption></figcaption></figure></div>

### Shaders Overrides <a href="#override-pour-les-shaders" id="override-pour-les-shaders"></a>

In RetroArch, it is possible to save a Shaders override file for a game, a core, a content folder or globally.

In order to save a Shaders override file,open the RetroArch quick menu by pressing SELECT + ![](https://wiki.retrobat.org/~gitbook/image?url=https%3A%2F%2F466894649-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCgoewyw8Sagl6SNUMrCG%252Fuploads%252FcFYw1e2sB0jT0mUZIx7S%252Fimage.png%3Falt%3Dmedia%26token%3Df8809c2a-5024-4c4f-b2c3-756897352eb1\&width=300\&dpr=4\&quality=100\&sign=c3cf2a80\&sv=2) on your controller (F1 on the keyboard). Than open the **Shaders** menu to manage the settings:

<div align="left"><figure><img src="https://i.imgur.com/mrTZlVU.png" alt=""><figcaption></figcaption></figure></div>

Once the settings done, open the "**Save Preset**" submenu:

<div align="left"><figure><img src="https://i.imgur.com/7d9sFd3.png" alt=""><figcaption></figcaption></figure></div>

Save at the desired level (folder, core, game, global):

<div align="left"><figure><img src="https://i.imgur.com/llFd8dU.png" alt=""><figcaption></figcaption></figure></div>

RetroArch will automatically save the shaders configuration in a file :

![](https://wiki.retrobat.org/~gitbook/image?url=https%3A%2F%2Fi.imgur.com%2FY0KTSXc.png\&width=768\&dpr=4\&quality=100\&sign=16457507\&sv=2)

Finally, enable the Shaders override option in RetroBat [MAIN MENU > GAME SETTINGS > RETROARCH OPTIONS > VISUAL RENDERING](https://wiki.retrobat.org/navigation/main-menu#game-settings):

<div align="left"><figure><img src="https://i.imgur.com/jZ0c4fc.png" alt=""><figcaption></figcaption></figure></div>

### RetroArch custom Aspect Ratio override <a href="#override-pour-les-options" id="override-pour-les-options"></a>

When using the "custom" aspect ratio value in **ADVANCED SETTINGS > GAME ASPECT RATIO**, it is possible to force the value of the ratio to apply in RetroArch by creating a .txt file with the following information:

* width
* height
* top
* left

The information from the file will automatically fill the following values in RetroArch:

<div align="left"><figure><img src="https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2Fb42CwnUBzcez9rgnoLtv%2Fimage.png?alt=media&#x26;token=ea4a3421-05fe-4e93-98d8-149ae38b6818" alt=""><figcaption></figcaption></figure></div>

To do so, create a txt file either in the `roms\<system>` folder of the system the ratio needs to be applied, or within the `user\customratio` folder of your RetroBat installation:

<div align="left"><figure><img src="https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2F3ahdsLMB5VzrQcanbiVV%2Fimage.png?alt=media&#x26;token=2cda807e-4b90-49ec-8c1d-83726e138dc0" alt=""><figcaption><p>Example for NES</p></figcaption></figure></div>

The file must be named either:

* `<system>_<romname>_customratio.txt` (to be applied for a specific game)
* `<system>_customratio.txt` (to be applied for the full system)

Finally, enable the "custom" aspect ratio value in RetroBat:

<div align="left"><figure><img src="https://990680527-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FexdzL60ZuqPLldz2AYta%2Fuploads%2FphYisIDzZu1Hxba0myZR%2Fimage.png?alt=media&#x26;token=8d542757-84e0-47e2-94a7-a351f256026c" alt=""><figcaption></figcaption></figure></div>
