aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2006-09-09 10:47:08 +0000
committerChris Apers2006-09-09 10:47:08 +0000
commit8116f167adf8376a3bf6c37cc6ea337790a03ae3 (patch)
tree7f3118581e8c908c9f4778ca58a7e882261dfe60
parent6ee4d1b317681a028ee9d00242a0d1cd10cf43be (diff)
downloadscummvm-rg350-8116f167adf8376a3bf6c37cc6ea337790a03ae3.tar.gz
scummvm-rg350-8116f167adf8376a3bf6c37cc6ea337790a03ae3.tar.bz2
scummvm-rg350-8116f167adf8376a3bf6c37cc6ea337790a03ae3.zip
This printf isnot supportedon PalmOS 68k, taken from an old port of Sarien
svn-id: r23841
-rw-r--r--engines/agi/savegame.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/agi/savegame.cpp b/engines/agi/savegame.cpp
index c9c0de584b..dea7977e5d 100644
--- a/engines/agi/savegame.cpp
+++ b/engines/agi/savegame.cpp
@@ -611,7 +611,14 @@ static int select_slot() {
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);