From 524351fef79d64634ffe09fadf6576b112bd7ec4 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 26 Feb 2019 14:49:36 +0100 Subject: [PATCH] use computerconfig.xml for machinewide config --- Global_Indexer/ModuleMySettings.vb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Global_Indexer/ModuleMySettings.vb b/Global_Indexer/ModuleMySettings.vb index ff8fae2..b123ac3 100644 --- a/Global_Indexer/ModuleMySettings.vb +++ b/Global_Indexer/ModuleMySettings.vb @@ -3,7 +3,8 @@ Imports System.Xml Module ModuleMySettings 'Dim ConfigPath As String = Path.Combine(Application.UserAppDataPath(), "UserConfig.xml") - Public Const CONFIG_FILE = "UserConfig.xml" + Public Const USER_CONFIG_FILE = "UserConfig.xml" + Public Const COMPUTER_CONFIG_FILE = "ComputerConfig.xml" Public MyConnectionString As String = "" Public LogErrorsOnly As Boolean = True @@ -15,11 +16,11 @@ Module ModuleMySettings Public FWSCAN_started As Boolean = False Public Function GetUserConfigPath() As String - Return Path.Combine(Application.UserAppDataPath(), CONFIG_FILE) + Return Path.Combine(Application.UserAppDataPath(), USER_CONFIG_FILE) End Function Public Function GetAllUsersConfigPath() As String - Return Path.Combine(Application.CommonAppDataPath(), CONFIG_FILE) + Return Path.Combine(Application.CommonAppDataPath(), COMPUTER_CONFIG_FILE) End Function Public Function GetCurrentConfigPath() As String