[Scummvm-cvs-logs] SF.net SVN: scummvm: [23841] scummvm/trunk/engines/agi/savegame.cpp

chrilith at users.sourceforge.net chrilith at users.sourceforge.net
Sat Sep 9 12:47:13 CEST 2006


Revision: 23841
          http://svn.sourceforge.net/scummvm/?rev=23841&view=rev
Author:   chrilith
Date:     2006-09-09 03:47:08 -0700 (Sat, 09 Sep 2006)

Log Message:
-----------
This printf isnot supportedon PalmOS 68k, taken from an old port of Sarien

Modified Paths:
--------------
    scummvm/trunk/engines/agi/savegame.cpp

Modified: scummvm/trunk/engines/agi/savegame.cpp
===================================================================
--- scummvm/trunk/engines/agi/savegame.cpp	2006-09-09 10:29:14 UTC (rev 23840)
+++ scummvm/trunk/engines/agi/savegame.cpp	2006-09-09 10:47:08 UTC (rev 23841)
@@ -611,7 +611,14 @@
 	while (42) {
 		char dstr[64];
 		for (i = 0; i < NUM_SLOTS; i++) {
+#ifndef PALMOS_68K
 			sprintf(dstr, "[%-32.32s]", desc[i]);
+#else
+                        dstr[0] = '[';
+                        memcpy(dstr + 1, desc[i], 32);
+                        dstr[33] = ']';
+                        dstr[34] = 0;
+#endif
 			_text->print_text(dstr, 0, hm + 1, vm + 4 + i,
 					(40 - 2 * hm) - 1, i == active ? MSG_BOX_COLOUR : MSG_BOX_TEXT,
 					i == active ? MSG_BOX_TEXT : MSG_BOX_COLOUR);


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