aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorChris Apers2003-12-15 15:17:06 +0000
committerChris Apers2003-12-15 15:17:06 +0000
commit6a9972c5f5009cd334ead9f7b566f95a28a8548f (patch)
treebaafc6106db1bd7f7fca969786debb880392f456 /simon
parent5d1a198db0fd5cd5a2fa412b6ed9eef50c5ccc89 (diff)
downloadscummvm-rg350-6a9972c5f5009cd334ead9f7b566f95a28a8548f.tar.gz
scummvm-rg350-6a9972c5f5009cd334ead9f7b566f95a28a8548f.tar.bz2
scummvm-rg350-6a9972c5f5009cd334ead9f7b566f95a28a8548f.zip
No stat.h on PalmOS
svn-id: r11658
Diffstat (limited to 'simon')
-rw-r--r--simon/debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/simon/debug.cpp b/simon/debug.cpp
index ed9450fb4f..d2c111291e 100644
--- a/simon/debug.cpp
+++ b/simon/debug.cpp
@@ -353,7 +353,9 @@ void dump_bitmap(const char *filename, byte *offs, int w, int h, int flags, cons
void SimonEngine::dump_single_bitmap(int file, int image, byte *offs, int w, int h, byte base) {
char buf[40];
+#ifndef __PALM_OS__
struct stat statbuf;
+#endif
#if defined(MACOS_CARBON)
sprintf(buf, ":dumps:File%d_Image%d.bmp", file, image);
@@ -361,8 +363,10 @@ void SimonEngine::dump_single_bitmap(int file, int image, byte *offs, int w, int
sprintf(buf, "dumps/File%d_Image%d.bmp", file, image);
#endif
+#ifndef __PALM_OS__
if (stat(buf, &statbuf) == 0)
return;
+#endif
dump_bitmap(buf, offs, w, h, 0, _palette, base);
}