From 56e21b6a8a2435e512760996fdf6ca7f2232f00a Mon Sep 17 00:00:00 2001 From: Jakes Date: Thu, 13 Nov 2014 09:58:00 +0800 Subject: [PATCH] fix configs cannot be loaded correctly --- shadowsocks-csharp/Model/Configuration.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Model/Configuration.cs b/shadowsocks-csharp/Model/Configuration.cs index db02b840..a3e9875a 100755 --- a/shadowsocks-csharp/Model/Configuration.cs +++ b/shadowsocks-csharp/Model/Configuration.cs @@ -15,7 +15,8 @@ namespace Shadowsocks.Model public bool shareOverLan; public bool isDefault; - private static string CONFIG_FILE = "gui-config.json"; + private static string EXE_PATH = Application.StartupPath + "\\"; + private static string CONFIG_FILE = EXE_PATH + "gui-config.json"; public Server GetCurrentServer() {