# [https://social.technet.microsoft.com/wiki/contents/articles/1784.windows-how-to-view-file-name-extensions.aspx Show file name extensions in Explorer].
# Go to <code>Documents\Xenia</code> and open <code>xenia.config.toml</code> in a text editor like [https://notepad-plus-plus.org/download/ Notepad++].
#* If a <code>portable.txt</code> file is present in the same directory as xenia.exe it will be in the same directory as xenia.exe.
#* Per-game configs go in <code>config\TitleID.config.toml</code>. Note that '''per-game configs are highly unstable''', only very few options can be changed from it safely or at all, as most emulator subsystems are initialized before per-game configs are loaded.
# For launchers/frontends like [https://github.com/quinton-ashley/bottlenose Bottlenose] you can use the <code>--config</code> launch parameter to specify what config to use.
#* To launch specific games, add the path to the game before the launch options. For example: <code>xenia.exe path/to/game/default.xex --vsync=false</code>
[https://github.com/xenia-project/xenia/wiki/ROV What is ROV (rasterizer-ordered views)?]
Leave this option blank for auto-selection.
{|
! <code>render_target_path_d3d12</code> =
! <code>string</code>
|-
| RTV ''(recommended for speed)''
| <code>rtv</code>
|-
| ROV ''(if available, for higher accuracy in certain cases)''
| <code>rov</code>
|}
==== Resolution scaling ====
This is a hack, and as such, '''bugs should be expected'''.
<!--Most games run at 720p, however, there are a few exceptions:
{|
! Title
! Resolution(s)
|-
| Halo 3<br>Halo 3 ODST<br>Halo 3 Mythic<br>Halo CE Anniversary
| 1152x640
|-
| Banjo Kazooie<br>Banjo Tooie<br>Bean (GoldenEye 007 HD/Remaster)<br>Perfect Dark
| 1280x720 (default), 1920x1080
|}
-->
Horizontal scale:
{|
! <code>draw_resolution_scale_x</code> =
! <code>#</code>
|-
| 1x (''default'', 1280x)
| <code>1</code>
|-
| 2x (2560x)
| <code>2</code>
|-
| 3x (3840x)
| <code>3</code>
|-
| 4x (5120x)
| <code>4</code>
|-
| 5x (6400x)
| <code>5</code>
|-
| 6x (7680x)
| <code>6</code>
|-
| 7x (8960x)
| <code>7</code>
|}
Vertical scale:
{|
! <code>draw_resolution_scale_y</code> =
! <code>#</code>
|-
| 1x (''default'', x720)
| <code>1</code>
|-
| 2x (x1440)
| <code>2</code>
|-
| 3x (x2160)
| <code>3</code>
|-
| 4x (x2880)
| <code>4</code>
|-
| 5x (x3600)
| <code>5</code>
|-
| 6x (x4320)
| <code>6</code>
|-
| 7x (x5040)
| <code>7</code>
|}
==== CPU readback after render target resolving ====
* This is needed for certain games, including but not limited to:
** Orange Box (text/save icons)
** SSX (2012, core temp missions)
{|
! <code>d3d12_readback_resolve</code> =
! <code>bool</code>
|-
| Off (''default'')
| <code>false</code>
|-
| On (''slower'')
| <code>true</code>
|}
=== Misc ===
==== Allow invalid fetch constants ====
Allow texture and vertex fetch constants with invalid type - generally unsafe because the constant may contain completely invalid values, but may be used to bypass fetch constant type errors in certain games until the real reason why they're invalid is found.
* Games that speed up have the [https://github.com/xenia-project/game-compatibility/issues?q=is%3Aopen+is%3Aissue+label%3Avsync-off-speedup vsync-off-speedup] label.
| SDL2* ''(needed for non-XInput controllers, '''DOES NOT REQUIRE DLL''')''
| <code>sdl</code>
|-
| XInput
| <code>xinput</code>
|-
| Keyboard
| <code>winkey</code>
|}
*When using SDL: If your game controller is not mapped correctly, [https://github.com/gabomdq/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt download gamecontrollerdb.txt] and place it in the folder next to your xenia executable.
== Hacks ==
=== Protect zero ===
{|
! <code>protect_zero</code> =
! <code>bool</code>
|-
| True ''(default)''
| <code>true</code>
|-
| False (hack, needed for certain games)
| <code>false</code>
|}
* Certain games require this to set be set to false to work around crashes. This includes, but isn't limited to: