aboutsummaryrefslogtreecommitdiff
path: root/backends/saves/default
diff options
context:
space:
mode:
authorMax Horn2007-03-16 23:07:08 +0000
committerMax Horn2007-03-16 23:07:08 +0000
commit5d59ee609190d8b349e2751adf9f98ba0b9695e8 (patch)
tree1610f8747e3c6e575df7cc149cdec2451d045e6b /backends/saves/default
parentfeba06717ff81548e32ea22d76322ba2a60c9010 (diff)
downloadscummvm-rg350-5d59ee609190d8b349e2751adf9f98ba0b9695e8.tar.gz
scummvm-rg350-5d59ee609190d8b349e2751adf9f98ba0b9695e8.tar.bz2
scummvm-rg350-5d59ee609190d8b349e2751adf9f98ba0b9695e8.zip
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)
svn-id: r26152
Diffstat (limited to 'backends/saves/default')
-rw-r--r--backends/saves/default/default-saves.cpp6
-rw-r--r--backends/saves/default/default-saves.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index 0e5b00d316..f6a13b0d68 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -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 @@ void DefaultSaveFileManager::listSavefiles(const char * /* prefix */, bool *mark
// Even better, replace this with a better design...
memset(marks, true, num * sizeof(bool));
}
+
+#endif // !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
diff --git a/backends/saves/default/default-saves.h b/backends/saves/default/default-saves.h
index 8a6df66af9..6eeee417e7 100644
--- a/backends/saves/default/default-saves.h
+++ b/backends/saves/default/default-saves.h
@@ -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"