[longomatch] Find the prefix in the same way for all the platforms



commit 1c2691c1e8739fe441dccb7f33e8cf558be5d7f4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Aug 22 19:05:22 2012 +0200

    Find the prefix in the same way for all the platforms

 LongoMatch.Services/Services/Core.cs |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 734bc2e..abf304f 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -154,11 +154,7 @@ namespace LongoMatch.Services
 		private static void SetupBaseDir() {
 			string home;
 			
-			if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
-				Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
-			}
-			else
-				Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");
+			Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");
 			
 			/* 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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]