Rename "Controller Buttons" to "Controller Icons".

This commit is contained in:
Skyth 2024-12-07 16:47:58 +03:00
parent 2651bfa5a1
commit aec99b4f42
6 changed files with 13 additions and 13 deletions

View file

@ -2614,7 +2614,7 @@ static void ProcSetViewport(const RenderCommand& cmd)
static void SetTexture(GuestDevice* device, uint32_t index, GuestTexture* texture)
{
if (Config::ControllerButtons == EControllerButtons::PlayStation && texture != nullptr && texture->patchedTexture != nullptr)
if (Config::ControllerIcons == EControllerIcons::PlayStation && texture != nullptr && texture->patchedTexture != nullptr)
texture = texture->patchedTexture.get();
RenderCommand cmd;

View file

@ -131,18 +131,18 @@ CONFIG_DEFINE_ENUM_LOCALE(ETimeOfDayTransition)
}
};
CONFIG_DEFINE_LOCALE(ControllerButtons)
CONFIG_DEFINE_LOCALE(ControllerIcons)
{
{ ELanguage::English, { "Controller Buttons", "[PLACEHOLDER]" } }
{ ELanguage::English, { "Controller Icons", "[PLACEHOLDER]" } }
};
CONFIG_DEFINE_ENUM_LOCALE(EControllerButtons)
CONFIG_DEFINE_ENUM_LOCALE(EControllerIcons)
{
{
ELanguage::English,
{
{ EControllerButtons::Xbox, { "XBOX", "[PLACEHOLDER]" } },
{ EControllerButtons::PlayStation, { "PLAYSTATION", "[PLACEHOLDER]" } }
{ EControllerIcons::Xbox, { "XBOX", "[PLACEHOLDER]" } },
{ EControllerIcons::PlayStation, { "PLAYSTATION", "[PLACEHOLDER]" } }
}
}
};

View file

@ -114,7 +114,7 @@ void LoadingScreenControllerMidAsmHook()
0x820301E8, // 360_super
};
const char* prefix = Config::ControllerButtons == EControllerButtons::PlayStation ? "ps3" : "360";
const char* prefix = Config::ControllerIcons == EControllerIcons::PlayStation ? "ps3" : "360";
for (auto address : STR_ADDRESSES)
memcpy(g_memory.Translate(address), prefix, 3);
}

View file

@ -790,7 +790,7 @@ static void DrawConfigOptions()
DrawConfigOption(rowCount++, yOffset, &Config::InvertCameraX, true);
DrawConfigOption(rowCount++, yOffset, &Config::InvertCameraY, true);
DrawConfigOption(rowCount++, yOffset, &Config::AllowBackgroundInput, true);
DrawConfigOption(rowCount++, yOffset, &Config::ControllerButtons, true);
DrawConfigOption(rowCount++, yOffset, &Config::ControllerIcons, true);
break;
case 2: // AUDIO
DrawConfigOption(rowCount++, yOffset, &Config::MusicVolume, true);

View file

@ -24,7 +24,7 @@ public:
CONFIG_DEFINE_LOCALISED("Input", bool, XButtonHoming, true);
CONFIG_DEFINE_LOCALISED("Input", bool, AllowCancellingUnleash, false);
CONFIG_DEFINE_LOCALISED("Input", bool, AllowBackgroundInput, false);
CONFIG_DEFINE_ENUM_LOCALISED("Input", EControllerButtons, ControllerButtons, EControllerButtons::Xbox);
CONFIG_DEFINE_ENUM_LOCALISED("Input", EControllerIcons, ControllerIcons, EControllerIcons::Xbox);
CONFIG_DEFINE_LOCALISED("Audio", float, MusicVolume, 1.0f);
CONFIG_DEFINE_LOCALISED("Audio", float, EffectsVolume, 1.0f);

View file

@ -67,16 +67,16 @@ CONFIG_DEFINE_ENUM_TEMPLATE(ETimeOfDayTransition)
{ "PlayStation", ETimeOfDayTransition::PlayStation }
};
enum class EControllerButtons : uint32_t
enum class EControllerIcons : uint32_t
{
Xbox,
PlayStation
};
CONFIG_DEFINE_ENUM_TEMPLATE(EControllerButtons)
CONFIG_DEFINE_ENUM_TEMPLATE(EControllerIcons)
{
{ "Xbox", EControllerButtons::Xbox },
{ "PlayStation", EControllerButtons::PlayStation }
{ "Xbox", EControllerIcons::Xbox },
{ "PlayStation", EControllerIcons::PlayStation }
};
enum class EVoiceLanguage : uint32_t