From be0609f89796acbbb6cd4cd474bf9003bd55570d Mon Sep 17 00:00:00 2001 From: Harimurti Wibowo Date: Wed, 26 Jul 2017 21:53:05 +0700 Subject: [PATCH] config yang baik --- Apk_Installer/Config.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Apk_Installer/Config.cs b/Apk_Installer/Config.cs index 8a6e81d..5df8af0 100644 --- a/Apk_Installer/Config.cs +++ b/Apk_Installer/Config.cs @@ -12,7 +12,8 @@ class Data public bool register_apk { get; set; } } - private static string CONFIG_FILE = "config.ini"; + private static string EXE_DIRECTORY = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location); + private static string CONFIG_FILE = Path.Combine(EXE_DIRECTORY, "config.json"); private Data json_config; private static JsonSerializerSettings JSON_SETTINGS = new JsonSerializerSettings {