From 7478f69c58565a854ed61f8a8fd2a54fd41fc4c9 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 27 Apr 2024 20:14:41 +1000 Subject: [PATCH] RegTest: Fix build again --- src/duckstation-regtest/regtest_host.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/duckstation-regtest/regtest_host.cpp b/src/duckstation-regtest/regtest_host.cpp index f91b4cea1..556782798 100644 --- a/src/duckstation-regtest/regtest_host.cpp +++ b/src/duckstation-regtest/regtest_host.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) #include "core/achievements.h" +#include "core/controller.h" #include "core/fullscreen_ui.h" #include "core/game_list.h" #include "core/gpu.h" @@ -94,8 +95,8 @@ bool RegTestHost::InitializeConfig() g_settings.Save(si, false); si.SetStringValue("GPU", "Renderer", Settings::GetRendererName(GPURenderer::Software)); si.SetBoolValue("GPU", "DisableShaderCache", true); - si.SetStringValue("Pad1", "Type", Settings::GetControllerTypeName(ControllerType::AnalogController)); - si.SetStringValue("Pad2", "Type", Settings::GetControllerTypeName(ControllerType::None)); + si.SetStringValue("Pad1", "Type", Controller::GetControllerInfo(ControllerType::AnalogController)->name); + si.SetStringValue("Pad2", "Type", Controller::GetControllerInfo(ControllerType::None)->name); si.SetStringValue("MemoryCards", "Card1Type", Settings::GetMemoryCardTypeName(MemoryCardType::NonPersistent)); si.SetStringValue("MemoryCards", "Card2Type", Settings::GetMemoryCardTypeName(MemoryCardType::None)); si.SetStringValue("ControllerPorts", "MultitapMode", Settings::GetMultitapModeName(MultitapMode::Disabled));