[Scummvm-cvs-logs] CVS: scummvm/common config-manager.cpp,1.24,1.25 stdafx.h,1.19,1.20

Jonathan Gray khalek at users.sourceforge.net
Wed Dec 15 04:32:06 CET 2004


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9610/common

Modified Files:
	config-manager.cpp stdafx.h 
Log Message:
- Move MAXPATHLEN includes/defines into common location
- Save files are now stored in $HOME/.scummvm/ by default if no other
  save path is specified on non MacOS X unices.


Index: config-manager.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-manager.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- config-manager.cpp	5 Dec 2004 23:24:43 -0000	1.24
+++ config-manager.cpp	15 Dec 2004 12:30:58 -0000	1.25
@@ -25,7 +25,6 @@
 #include "common/config-manager.h"
 
 #if defined(UNIX)
-#include <sys/param.h>
 #ifdef MACOSX
 #define DEFAULT_CONFIG_FILE "Library/Preferences/ScummVM Preferences"
 #else
@@ -35,10 +34,6 @@
 #define DEFAULT_CONFIG_FILE "scummvm.ini"
 #endif
 
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 256
-#endif
-
 #define MAXLINELEN 256
 
 static char *ltrim(char *t) {

Index: stdafx.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/stdafx.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- stdafx.h	28 Sep 2004 12:11:00 -0000	1.19
+++ stdafx.h	15 Dec 2004 12:30:58 -0000	1.20
@@ -99,6 +99,7 @@
 #if !defined(macintosh)
 #include <sys/types.h>
 #include <sys/uio.h>
+#include <sys/param.h>
 #endif
 #if !defined (__BEOS__)
 #include <unistd.h>
@@ -119,4 +120,8 @@
 
 #endif
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 256
+#endif
+
 #endif





More information about the Scummvm-git-logs mailing list