diff --git a/src/core/system.cpp b/src/core/system.cpp index f513fc465..13f7b0297 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -663,7 +663,7 @@ bool System::IsPALRegion() return s_region == ConsoleRegion::PAL; } -const char* System::GetTaintDisplayName(Taint taint) +std::string_view System::GetTaintDisplayName(Taint taint) { static constexpr const std::array(Taint::MaxCount)> names = {{ TRANSLATE_DISAMBIG_NOOP("System", "CPU Overclock", "Taint"), @@ -675,7 +675,7 @@ const char* System::GetTaintDisplayName(Taint taint) TRANSLATE_DISAMBIG_NOOP("System", "Game Patches", "Taint"), }}; - return names[static_cast(taint)]; + return Host::TranslateToStringView("System", names[static_cast(taint)], "Taint"); } const char* System::GetTaintName(Taint taint) diff --git a/src/core/system.h b/src/core/system.h index cf2c4d41c..885e53247 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -169,7 +169,7 @@ DiscRegion GetDiscRegion(); bool IsPALRegion(); /// Taints - flags that are set on the system and only cleared on reset. -const char* GetTaintDisplayName(Taint taint); +std::string_view GetTaintDisplayName(Taint taint); const char* GetTaintName(Taint taint); bool HasTaint(Taint taint); void SetTaint(Taint taint);