From 0c32038480b3a9513d8c1d94c6ce0de51d99e388 Mon Sep 17 00:00:00 2001 From: "feal87@gmail.com" Date: Tue, 21 Dec 2010 07:42:45 +0000 Subject: [PATCH] Reactivated the overrides modifying manually directly the inis. Now the app should be stable enough to allow base testing. I can now restart working on the debugger. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4116 96395faa-99c1-11dd-bbfe-3dabce05a288 --- tools/GSDumpGUI/Forms/frmMain.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/GSDumpGUI/Forms/frmMain.cs b/tools/GSDumpGUI/Forms/frmMain.cs index c3bd78f0ee..dcdaa20c2c 100644 --- a/tools/GSDumpGUI/Forms/frmMain.cs +++ b/tools/GSDumpGUI/Forms/frmMain.cs @@ -189,6 +189,18 @@ namespace GSDumpGUI SelectedRenderer = "4"; break; } + if (SelectedRenderer != "-1") + { + if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "GSDumpGSDXConfigs\\" + GSDXName + "\\inis\\gsdx.ini")) + { + String ini = File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "GSDumpGSDXConfigs\\" + GSDXName + "\\inis\\gsdx.ini"); + int pos = ini.IndexOf("Renderer=", 0); + String newini = ini.Substring(0, pos + 9); + newini += SelectedRenderer; + newini += ini.Substring(pos + 10, ini.Length - pos - 10); + File.WriteAllText(AppDomain.CurrentDomain.BaseDirectory + "GSDumpGSDXConfigs\\" + GSDXName + "\\inis\\gsdx.ini", newini); + } + } if (lstDumps.SelectedItem != null) DumpPath = Properties.Settings.Default.DumpDir + "\\" + lstDumps.SelectedItem.ToString().Split(new char[] { '|' })[0];