[Scummvm-cvs-logs] SF.net SVN: scummvm:[53020] scummvm/branches/branch-1-2-0/engines/sky/ control.h

agent-q at users.sourceforge.net agent-q at users.sourceforge.net
Tue Oct 5 00:37:45 CEST 2010


Revision: 53020
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53020&view=rev
Author:   agent-q
Date:     2010-10-04 22:37:45 +0000 (Mon, 04 Oct 2010)

Log Message:
-----------
DS: Only allow Beneath a Steel Sky to have 50 saves when running on the DS - fixes a crash when saving via the GMM.

Modified Paths:
--------------
    scummvm/branches/branch-1-2-0/engines/sky/control.h

Modified: scummvm/branches/branch-1-2-0/engines/sky/control.h
===================================================================
--- scummvm/branches/branch-1-2-0/engines/sky/control.h	2010-10-04 22:36:44 UTC (rev 53019)
+++ scummvm/branches/branch-1-2-0/engines/sky/control.h	2010-10-04 22:37:45 UTC (rev 53020)
@@ -50,7 +50,14 @@
 struct DataFileHeader;
 struct MegaSet;
 
+#ifdef __DS__
+// Fix out of memory crash on the DS in SkyMetaEngine::listSaves() when saving or loading
+// from GMM.
+#define MAX_SAVE_GAMES 50
+#else
 #define MAX_SAVE_GAMES 999
+#endif
+
 #define MAX_TEXT_LEN 80
 #define PAN_LINE_WIDTH 184
 #define PAN_CHAR_HEIGHT 12


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