summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWmain.cpp
diff options
context:
space:
mode:
authorSilent <zdanio95@gmail.com>2019-07-21 00:57:50 +0200
committerSilent <zdanio95@gmail.com>2019-07-26 19:39:07 +0200
commit890f781cd07490a3db3a7c0e93fc957422371f25 (patch)
tree6ddb76ab3e3c7fa0f079167cb1186b0bae661b23 /Source/Core/VideoBackends/Software/SWmain.cpp
parent799c52463eb7987d31c70430422fa1499f2b3ef9 (diff)
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
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp7
1 files changed, 7 insertions, 0 deletions
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<std::string> 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;