[longomatch/redesign2: 10/159] Fix environment initialization
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 10/159] Fix environment initialization
- Date: Thu, 2 Jun 2011 00:11:14 +0000 (UTC)
commit 75794b4f82155ed4bd019825ece56d71bbfdf461
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Apr 17 20:43:04 2011 +0200
Fix environment initialization
LongoMatch/Main.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index 4781ace..dda518f 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -183,12 +183,12 @@ namespace LongoMatch
/* Check for the magic file PORTABLE to check if it's a portable version
* and the config goes in the same folder as the binaries */
- if (File.Exists(Constants.PROJECT_NAME))
+ if (File.Exists(System.IO.Path.Combine(baseDirectory, Constants.PORTABLE_FILE)))
home = baseDirectory;
else
home = System.Environment.GetFolderPath(Environment.SpecialFolder.Personal);
- homeDirectory = System.IO.Path.Combine(homeDirectory,Constants.SOFTWARE_NAME);
+ homeDirectory = System.IO.Path.Combine(home,Constants.SOFTWARE_NAME);
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
configDirectory = homeDirectory;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]