From 068855bbd641efd0d941c2005fb4f33459e32b03 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 21 Mar 2011 05:46:33 +0000 Subject: Moved per-game graphics configuration to the game-list right click menu. It will be too difficult to make the "profiles" drop-down thing work with 3-state vs 2-state checkboxes. The per-game settings now have "undetermined" states, except for the radio buttons(I'll fix that later). It's super hacky right now. Video config (probably all config stuff) could be redone. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7386 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/VideoBackendBase.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/Core/Common/Src/VideoBackendBase.cpp') diff --git a/Source/Core/Common/Src/VideoBackendBase.cpp b/Source/Core/Common/Src/VideoBackendBase.cpp index 1fbe0f4a41..1c77ec7c9b 100644 --- a/Source/Core/Common/Src/VideoBackendBase.cpp +++ b/Source/Core/Common/Src/VideoBackendBase.cpp @@ -16,6 +16,7 @@ // http://code.google.com/p/dolphin-emu/ #include "VideoBackendBase.h" +#include "../../VideoCommon/Src/VideoConfig.h" // TODO: ugly #ifdef _WIN32 @@ -73,3 +74,13 @@ void VideoBackend::ActivateBackend(const std::string& name) if (name == (*it)->GetName()) g_video_backend = *it; } + +void VideoBackend::LoadConfig() +{ + g_Config.Load(((File::GetUserPath(D_CONFIG_IDX) + ini_name) + ".ini").c_str()); +} + +void VideoBackend::SaveConfig() +{ + g_Config.Save(((File::GetUserPath(D_CONFIG_IDX) + ini_name) + ".ini").c_str()); +} -- cgit v1.2.3