From 890f781cd07490a3db3a7c0e93fc957422371f25 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 21 Jul 2019 00:57:50 +0200 Subject: Factorize software renderer backend switching warning to be fetched from a new GetWarningMessage in video backend - will be needed for DX11.1 feature set warnings --- Source/Core/VideoBackends/Software/SWmain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp') diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 1d02660cf7..4309e39021 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -53,6 +53,13 @@ std::string VideoSoftware::GetDisplayName() const return _trans("Software Renderer"); } +std::optional VideoSoftware::GetWarningMessage() const +{ + return _trans("The software renderer is significantly slower than other " + "backends and is only recommended for debugging purposes.\n\nDo you " + "really want to enable software rendering? If unsure, select 'No'."); +} + void VideoSoftware::InitBackendInfo() { g_Config.backend_info.api_type = APIType::Nothing; -- cgit v1.2.3