<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40439 >

Absolute paths aren't detected on Windows, which prevents saving games
in other directories than the default directory. Reported on the forums:
http://forum.freeciv.org/viewtopic.php?t=5541

Index: utility/shared.c
===================================================================
--- utility/shared.c	(revision 15137)
+++ utility/shared.c	(working copy)
@@ -1688,9 +1688,15 @@
     return FALSE;
   }
 
+#ifdef WIN32_NATIVE
+  if (strchr(filename, ':')) {
+    return TRUE;
+  }
+#else
   if (filename[0] == '/') {
     return TRUE;
   }
+#endif  
 
   return FALSE;
 }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to