1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[util] Use R string literals for app compat regexes

This commit is contained in:
Joshua Ashton 2019-08-24 18:38:41 +01:00 committed by Philip Rebohle
parent 54ca5900e1
commit 8e54477c2a

View File

@ -13,131 +13,131 @@ namespace dxvk {
const static std::vector<std::pair<const char*, Config>> g_appDefaults = {{ const static std::vector<std::pair<const char*, Config>> g_appDefaults = {{
/* Anno 1800 */ /* Anno 1800 */
{ "\\\\Anno1800\\.exe$", {{ { R"(\\Anno1800\.exe$)", {{
{ "d3d11.allowMapFlagNoWait", "True" } { "d3d11.allowMapFlagNoWait", "True" }
}} }, }} },
/* Assassin's Creed Syndicate: amdags issues */ /* Assassin's Creed Syndicate: amdags issues */
{ "\\\\ACS\\.exe$", {{ { R"(\\ACS\.exe$)", {{
{ "dxgi.customVendorId", "10de" }, { "dxgi.customVendorId", "10de" },
}} }, }} },
/* Dishonored 2 */ /* Dishonored 2 */
{ "\\\\Dishonored2\\.exe$", {{ { R"(\\Dishonored2\.exe$)", {{
{ "d3d11.allowMapFlagNoWait", "True" } { "d3d11.allowMapFlagNoWait", "True" }
}} }, }} },
/* Dissidia Final Fantasy NT Free Edition */ /* Dissidia Final Fantasy NT Free Edition */
{ "\\\\dffnt\\.exe$", {{ { R"(\\dffnt\.exe$)", {{
{ "dxgi.deferSurfaceCreation", "True" }, { "dxgi.deferSurfaceCreation", "True" },
}} }, }} },
/* Elite Dangerous: Compiles weird shaders * /* Elite Dangerous: Compiles weird shaders *
* when running on AMD hardware */ * when running on AMD hardware */
{ "\\\\EliteDangerous64\\.exe$", {{ { R"(\\EliteDangerous64\.exe$)", {{
{ "dxgi.customVendorId", "10de" }, { "dxgi.customVendorId", "10de" },
}} }, }} },
/* The Vanishing of Ethan Carter Redux */ /* The Vanishing of Ethan Carter Redux */
{ "\\\\EthanCarter-Win64-Shipping\\.exe$", {{ { R"(\\EthanCarter-Win64-Shipping\.exe$)", {{
{ "dxgi.customVendorId", "10de" }, { "dxgi.customVendorId", "10de" },
}} }, }} },
/* The Evil Within: Submits command lists * /* The Evil Within: Submits command lists *
* multiple times */ * multiple times */
{ "\\\\EvilWithin(Demo)?\\.exe$", {{ { R"(\\EvilWithin(Demo)?\.exe$)", {{
{ "d3d11.dcSingleUseMode", "False" }, { "d3d11.dcSingleUseMode", "False" },
}} }, }} },
/* Far Cry 3: Assumes clear(0.5) on an UNORM * /* Far Cry 3: Assumes clear(0.5) on an UNORM *
* format to result in 128 on AMD and 127 on * * format to result in 128 on AMD and 127 on *
* Nvidia. We assume that the Vulkan drivers * * Nvidia. We assume that the Vulkan drivers *
* match the clear behaviour of D3D11. */ * match the clear behaviour of D3D11. */
{ "\\\\(farcry3|fc3_blooddragon)_d3d11\\.exe$", {{ { R"(\\(farcry3|fc3_blooddragon)_d3d11\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Far Cry 4: Same as Far Cry 3 */ /* Far Cry 4: Same as Far Cry 3 */
{ "\\\\FarCry4\\.exe$", {{ { R"(\\FarCry4\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Far Cry 5: Avoid CPU <-> GPU sync */ /* Far Cry 5: Avoid CPU <-> GPU sync */
{ "\\\\FarCry5\\.exe$", {{ { R"(\\FarCry5\.exe$)", {{
{ "d3d11.allowMapFlagNoWait", "True" } { "d3d11.allowMapFlagNoWait", "True" }
}} }, }} },
/* Far Cry Primal: Nvidia performance */ /* Far Cry Primal: Nvidia performance */
{ "\\\\FCPrimal\\.exe$", {{ { R"(\\FCPrimal\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
} }}, } }},
/* Frostpunk: Renders one frame with D3D9 * /* Frostpunk: Renders one frame with D3D9 *
* after creating the DXGI swap chain */ * after creating the DXGI swap chain */
{ "\\\\Frostpunk\\.exe$", {{ { R"(\\Frostpunk\.exe$)", {{
{ "dxgi.deferSurfaceCreation", "True" }, { "dxgi.deferSurfaceCreation", "True" },
}} }, }} },
/* Nioh: See Frostpunk, apparently? */ /* Nioh: See Frostpunk, apparently? */
{ "\\\\nioh\\.exe$", {{ { R"(\\nioh\.exe$)", {{
{ "dxgi.deferSurfaceCreation", "True" }, { "dxgi.deferSurfaceCreation", "True" },
}} }, }} },
/* Quantum Break: Mever initializes shared * /* Quantum Break: Mever initializes shared *
* memory in one of its compute shaders */ * memory in one of its compute shaders */
{ "\\\\QuantumBreak\\.exe$", {{ { R"(\\QuantumBreak\.exe$)", {{
{ "d3d11.zeroInitWorkgroupMemory", "True" }, { "d3d11.zeroInitWorkgroupMemory", "True" },
}} }, }} },
/* Anno 2205: Random crashes with state cache */ /* Anno 2205: Random crashes with state cache */
{ "\\\\anno2205\\.exe$", {{ { R"(\\anno2205\.exe$)", {{
{ "dxvk.enableStateCache", "False" }, { "dxvk.enableStateCache", "False" },
}} }, }} },
/* Fifa '19: Binds typed buffer SRV to shader * /* Fifa '19: Binds typed buffer SRV to shader *
* that expects raw/structured buffer SRV */ * that expects raw/structured buffer SRV */
{ "\\\\FIFA19(_demo)?\\.exe$", {{ { R"(\\FIFA19(_demo)?\.exe$)", {{
{ "dxvk.useRawSsbo", "True" }, { "dxvk.useRawSsbo", "True" },
}} }, }} },
/* Final Fantasy XIV: Fix random black blocks */ /* Final Fantasy XIV: Fix random black blocks */
{ "\\\\ffxiv_dx11\\.exe$", {{ { R"(\\ffxiv_dx11\.exe$)", {{
{ "d3d11.strictDivision", "True" }, { "d3d11.strictDivision", "True" },
}} }, }} },
/* Resident Evil 2: Improve GPU performance */ /* Resident Evil 2: Improve GPU performance */
{ "\\\\re2\\.exe$", {{ { R"(\\re2\.exe$)", {{
{ "d3d11.relaxedBarriers", "True" }, { "d3d11.relaxedBarriers", "True" },
}} }, }} },
/* Resident Evil 7 */ /* Resident Evil 7 */
{ "\\\\re7\\.exe$", {{ { R"(\\re7\.exe$)", {{
{ "d3d11.relaxedBarriers", "True" }, { "d3d11.relaxedBarriers", "True" },
}} }, }} },
/* Devil May Cry 5 */ /* Devil May Cry 5 */
{ "\\\\DevilMayCry5\\.exe$", {{ { R"(\\DevilMayCry5\.exe$)", {{
{ "d3d11.relaxedBarriers", "True" }, { "d3d11.relaxedBarriers", "True" },
}} }, }} },
/* Call of Duty WW2 */ /* Call of Duty WW2 */
{ "\\\\s2_sp64_ship\\.exe$", {{ { R"(\\s2_sp64_ship\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Need for Speed 2015 */ /* Need for Speed 2015 */
{ "\\\\NFS16\\.exe$", {{ { R"(\\NFS16\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Mass Effect Andromeda */ /* Mass Effect Andromeda */
{ "\\\\MassEffectAndromeda\\.exe$", {{ { R"(\\MassEffectAndromeda\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Mirror`s Edge Catalyst: Crashes on AMD */ /* Mirror`s Edge Catalyst: Crashes on AMD */
{ "\\\\MirrorsEdgeCatalyst(Trial)?\\.exe$", {{ { R"(\\MirrorsEdgeCatalyst(Trial)?\.exe$)", {{
{ "dxgi.customVendorId", "10de" }, { "dxgi.customVendorId", "10de" },
}} }, }} },
/* Star Wars Battlefront (2015) */ /* Star Wars Battlefront (2015) */
{ "\\\\starwarsbattlefront(trial)?\\.exe$", {{ { R"(\\starwarsbattlefront(trial)?\.exe$)", {{
{ "dxgi.nvapiHack", "False" }, { "dxgi.nvapiHack", "False" },
}} }, }} },
/* Dark Souls Remastered */ /* Dark Souls Remastered */
{ "\\\\DarkSoulsRemastered\\.exe$", {{ { R"(\\DarkSoulsRemastered\.exe$)", {{
{ "d3d11.constantBufferRangeCheck", "True" }, { "d3d11.constantBufferRangeCheck", "True" },
}} }, }} },
/* Grim Dawn */ /* Grim Dawn */
{ "\\\\Grim Dawn\\.exe$", {{ { R"(\\Grim Dawn\.exe$)", {{
{ "d3d11.constantBufferRangeCheck", "True" }, { "d3d11.constantBufferRangeCheck", "True" },
}} }, }} },
/* NieR:Automata */ /* NieR:Automata */
{ "\\\\NieRAutomata\\.exe$", {{ { R"(\\NieRAutomata\.exe$)", {{
{ "d3d11.constantBufferRangeCheck", "True" }, { "d3d11.constantBufferRangeCheck", "True" },
}} }, }} },
/* The Surge */ /* The Surge */
{ "\\\\TheSurge\\.exe$", {{ { R"(\\TheSurge\.exe$)", {{
{ "d3d11.allowMapFlagNoWait", "True" }, { "d3d11.allowMapFlagNoWait", "True" },
}} }, }} },
/* SteamVR performance test */ /* SteamVR performance test */
{ "\\\\vr\\.exe$", {{ { R"(\\vr\.exe$)", {{
{ "d3d11.dcSingleUseMode", "False" }, { "d3d11.dcSingleUseMode", "False" },
}} }, }} },
}}; }};