mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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
This commit is contained in:
@ -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;
|
||||
|
@ -16,6 +16,7 @@ class VideoSoftware : public VideoBackendBase
|
||||
|
||||
std::string GetName() const override;
|
||||
std::string GetDisplayName() const override;
|
||||
std::optional<std::string> GetWarningMessage() const override;
|
||||
|
||||
void InitBackendInfo() override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user