X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;ds=sidebyside;f=Source%2FWinDefs.cpp;h=4557d1ee85853d1e692825bf7090eeb9b6822e21;hb=b32cd80b243d77cd80e026c7ae73e33ec39b1de9;hp=fd49c106d4c7c40f3c3285d7d22e8be16b57c6ba;hpb=34ce0cdd42f673a04aa29ae148d2206420dfd813;p=lugaru.git
diff --git a/Source/WinDefs.cpp b/Source/WinDefs.cpp
index fd49c10..4557d1e 100644
--- a/Source/WinDefs.cpp
+++ b/Source/WinDefs.cpp
@@ -1,5 +1,6 @@
/*
Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
@@ -17,12 +18,12 @@ You should have received a copy of the GNU General Public License
along with Lugaru. If not, see .
*/
-/**> HEADER FILES <**/
-#include "WinDefs.h"
-#include
+#include "WinDefs.hpp"
+
#include
-#include
#include
+#include
+#include
class AppTime
@@ -85,25 +86,3 @@ Duration AbsoluteDeltaToDuration( AbsoluteTime& a, AbsoluteTime& b)
return time;
}
-
-
-static char g_filename[ 256];
-char* ConvertFileName( const char* orgfilename)
-{
- // translate filename into proper path name
- if (orgfilename[ 0] == ':')
- orgfilename++;
- strcpy( g_filename, orgfilename);
-
- for (int n = 0; g_filename[ n]; n++) {
- if (g_filename[ n] == ':')
- g_filename[ n] = '/';
- }
-
- return g_filename;
-}
-
-char* ConvertFileName( const char* orgfilename, const char* junk)
-{
- return ConvertFileName(orgfilename);
-}