summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/main.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/OGL/main.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/OGL/main.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp
index 1b4ae331b6..be991a33a2 100644
--- a/Source/Core/VideoBackends/OGL/main.cpp
+++ b/Source/Core/VideoBackends/OGL/main.cpp
@@ -97,6 +97,11 @@ std::string VideoBackend::GetDisplayName() const
return "OpenGL";
}
+std::string VideoBackend::GetConfigName() const
+{
+ return "gfx_opengl";
+}
+
static std::vector<std::string> GetShaders(const std::string &sub_dir = "")
{
std::vector<std::string> paths = DoFileSearch({"*.glsl"}, {
@@ -134,7 +139,7 @@ void VideoBackend::ShowConfig(void *_hParent)
{
if (!s_BackendInitialized)
InitBackendInfo();
- Host_ShowVideoConfig(_hParent, GetDisplayName(), "gfx_opengl");
+ Host_ShowVideoConfig(_hParent, GetDisplayName(), GetConfigName());
}
bool VideoBackend::Initialize(void *window_handle)
@@ -144,7 +149,7 @@ bool VideoBackend::Initialize(void *window_handle)
frameCount = 0;
- g_Config.Load(File::GetUserPath(D_CONFIG_IDX) + "gfx_opengl.ini");
+ g_Config.Load(File::GetUserPath(D_CONFIG_IDX) + GetConfigName() + ".ini");
g_Config.GameIniLoad();
g_Config.UpdateProjectionHack();
g_Config.VerifyValidity();