From ef09b6f5a8c8d929501887fa9863d1b7d203a086 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Fri, 31 Jan 2014 18:11:44 +0100 Subject: [PATCH] modify some words --- LEGUI/App.xaml.cs | 5 ++++- LEProc/Program.cs | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/LEGUI/App.xaml.cs b/LEGUI/App.xaml.cs index cedebc5..b9a0e56 100644 --- a/LEGUI/App.xaml.cs +++ b/LEGUI/App.xaml.cs @@ -69,7 +69,10 @@ private void App_OnStartup(object sender, StartupEventArgs e) } catch (Exception ex) { - MessageBox.Show(ex.Message, "Locale Emulator", MessageBoxButton.OK, MessageBoxImage.Error); + MessageBox.Show("LEGUI requires administrator privilege to write to the current directory.", + "Locale Emulator", + MessageBoxButton.OK, + MessageBoxImage.Error); } finally { diff --git a/LEProc/Program.cs b/LEProc/Program.cs index e8b0a55..73598a6 100644 --- a/LEProc/Program.cs +++ b/LEProc/Program.cs @@ -19,7 +19,15 @@ internal static class Program [STAThread] private static void Main(string[] args) { - LEConfig.CheckGlobalConfigFile(true); + if (!File.Exists(LEConfig.GlobalConfigPath)) + { + MessageBox.Show( + "\"LEConfig.xml\" not found. \r\n" + + "Please run \"LEGUI.exe\" once to let it generate one for you.", + "Locale Emulator Version " + Application.ProductVersion, + MessageBoxButtons.OK, + MessageBoxIcon.Information); + } if (args.Length == 0) {