[Scummvm-cvs-logs] CVS: residual registry.cpp,1.2,1.3

James Brown ender at users.sourceforge.net
Wed Aug 20 09:53:02 CEST 2003


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv18626

Modified Files:
	registry.cpp 
Log Message:
Do not save last set when running in good_times debug mode


Index: registry.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/registry.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- registry.cpp	16 Aug 2003 12:12:17 -0000	1.2
+++ registry.cpp	20 Aug 2003 11:40:03 -0000	1.3
@@ -61,6 +61,11 @@
 }
 
 void Registry::set(const char *key, const char *val) {
+  // Hack: Don't save these, so we can run in good_times mode
+  // without new games being bogus.
+  if (strstr(key, "GrimLastSet") || strstr(key, "GrimMannyState"))
+   return;
+
   settings_[key] = val;
   dirty_ = true;
 }





More information about the Scummvm-git-logs mailing list