summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWmain.cpp
diff options
context:
space:
mode:
authorghost <void.ghost@yahoo.com>2015-09-22 03:25:37 +0300
committerghost <void.ghost@yahoo.com>2015-09-22 09:47:19 +0300
commit07e4b4f7c4079a8cef8f8e875ad281b508fc63e8 (patch)
tree442266ec32c93bd49b3d68d7ab2a3d237acc618c /Source/Core/VideoBackends/Software/SWmain.cpp
parent79bf93996fbfc713c1d6aa641b3af061d1d33c36 (diff)
VideoBackend: Video config filename is now exposed in VideoBackends.
It reduces redundancy. Needed make possible to save current video config.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index 12713bcc4e..370a723ddb 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -67,14 +67,19 @@ std::string VideoSoftware::GetDisplayName() const
return "Software Renderer";
}
+std::string VideoSoftware::GetConfigName() const
+{
+ return "gfx_software";
+}
+
void VideoSoftware::ShowConfig(void *hParent)
{
- Host_ShowVideoConfig(hParent, GetDisplayName(), "gfx_software");
+ Host_ShowVideoConfig(hParent, GetDisplayName(), GetConfigName());
}
bool VideoSoftware::Initialize(void *window_handle)
{
- g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + "gfx_software.ini").c_str());
+ g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + GetConfigName() + ".ini").c_str());
InitInterface();
GLInterface->SetMode(GLInterfaceMode::MODE_DETECT);