pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r3205 - trunk/pingus/src


From: jsalmon3
Subject: [Pingus-CVS] r3205 - trunk/pingus/src
Date: Fri, 21 Sep 2007 19:17:40 +0200

Author: jsalmon3
Date: 2007-09-21 19:17:37 +0200 (Fri, 21 Sep 2007)
New Revision: 3205

Modified:
   trunk/pingus/src/system.cpp
Log:
Some fixes for windows

Modified: trunk/pingus/src/system.cpp
===================================================================
--- trunk/pingus/src/system.cpp 2007-09-21 16:37:00 UTC (rev 3204)
+++ trunk/pingus/src/system.cpp 2007-09-21 17:17:37 UTC (rev 3205)
@@ -309,6 +309,8 @@
       homedir = 0;
       homedir = getenv("HOMEPATH");
       tmpstr = tmpstr + std::string(homedir) + "/.pingus/";
+      for (size_t pos = tmpstr.find('\\', 0); pos != std::string::npos; pos = 
tmpstr.find('\\', 0))
+        tmpstr[pos] = '/';
     }
   else
     tmpstr = "user/";
@@ -532,7 +534,11 @@
 {
   std::string fullpath;
   
-  if (pathname.size() > 0 && pathname[0] == '/')
+  if (pathname.size() > 0 && pathname[0] == '/'
+#ifdef WIN32
+    || (pathname.size() > 2 && pathname[1] == ':' && pathname[2] == '/')
+#endif
+         )
     {
       fullpath = pathname;
     }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]