Browse Source

Use portable settings file if it exists

pull/656/head
Crazycatz00 10 years ago
parent
commit
24054895bc
  1. 3
      ILSpy/ILSpySettings.cs

3
ILSpy/ILSpySettings.cs

@ -115,6 +115,9 @@ namespace ICSharpCode.ILSpy @@ -115,6 +115,9 @@ namespace ICSharpCode.ILSpy
static string GetConfigFile()
{
string localPath = Path.Combine(Path.GetDirectoryName(typeof(MainWindow).Assembly.Location), "ILSpy.xml");
if (File.Exists(localPath))
return localPath;
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ICSharpCode\\ILSpy.xml");
}

Loading…
Cancel
Save