mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
No stat.h on PalmOS
svn-id: r11658
This commit is contained in:
parent
5d1a198db0
commit
6a9972c5f5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user