[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3131 - trunk/pingus/src
From: |
jsalmon3 |
Subject: |
[Pingus-CVS] r3131 - trunk/pingus/src |
Date: |
Wed, 12 Sep 2007 05:13:34 +0200 |
Author: jsalmon3
Date: 2007-09-12 05:13:30 +0200 (Wed, 12 Sep 2007)
New Revision: 3131
Modified:
trunk/pingus/src/system.cpp
Log:
Fixed bug in System::realpath on windows
Modified: trunk/pingus/src/system.cpp
===================================================================
--- trunk/pingus/src/system.cpp 2007-09-12 02:46:40 UTC (rev 3130)
+++ trunk/pingus/src/system.cpp 2007-09-12 03:13:30 UTC (rev 3131)
@@ -540,6 +540,13 @@
std::cout << "System::realpath: Error: couldn't getcwd()" <<
std::endl;
return pathname;
}
+#ifdef WIN32
+ for (char *p = buf; *p; ++p)
+ {
+ if (*p == '\\')
+ *p = '/';
+ }
+#endif
fullpath = fullpath + buf + "/" + pathname;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3131 - trunk/pingus/src,
jsalmon3 <=