[Scummvm-cvs-logs] SF.net SVN: scummvm: [26152] scummvm/trunk/backends/saves/default

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Mar 17 00:07:09 CET 2007


Revision: 26152
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26152&view=rev
Author:   fingolfin
Date:     2007-03-16 16:07:08 -0700 (Fri, 16 Mar 2007)

Log Message:
-----------
Add a flag which makes it possible to disable the default savefile man (for backends which want to use our Makefile build system but don't want the default saveman)

Modified Paths:
--------------
    scummvm/trunk/backends/saves/default/default-saves.cpp
    scummvm/trunk/backends/saves/default/default-saves.h

Modified: scummvm/trunk/backends/saves/default/default-saves.cpp
===================================================================
--- scummvm/trunk/backends/saves/default/default-saves.cpp	2007-03-16 22:51:03 UTC (rev 26151)
+++ scummvm/trunk/backends/saves/default/default-saves.cpp	2007-03-16 23:07:08 UTC (rev 26152)
@@ -1,5 +1,5 @@
 /* ScummVM - Scumm Interpreter
- * Copyright (C) 2002-2006 The ScummVM project
+ * Copyright (C) 2002-2007 The ScummVM project
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -20,6 +20,8 @@
  *
  */
 
+#if !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
+
 #include "common/stdafx.h"
 #include "common/savefile.h"
 #include "common/util.h"
@@ -180,3 +182,5 @@
 	// Even better, replace this with a better design...
 	memset(marks, true, num * sizeof(bool));
 }
+
+#endif // !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)

Modified: scummvm/trunk/backends/saves/default/default-saves.h
===================================================================
--- scummvm/trunk/backends/saves/default/default-saves.h	2007-03-16 22:51:03 UTC (rev 26151)
+++ scummvm/trunk/backends/saves/default/default-saves.h	2007-03-16 23:07:08 UTC (rev 26152)
@@ -1,5 +1,5 @@
 /* ScummVM - Scumm Interpreter
- * Copyright (C) 2002-2006 The ScummVM project
+ * Copyright (C) 2002-2007 The ScummVM project
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -20,7 +20,7 @@
  *
  */
 
-#ifndef BACKEND_SAVES_DEFAULT_H
+#if !defined(BACKEND_SAVES_DEFAULT_H) && !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
 #define BACKEND_SAVES_DEFAULT_H
 
 #include "common/stdafx.h"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list