/* Copyright ©2002, The ScummVM Team. * * Current status: * Save/Load dialog doesn't work. You can still save, but only to ONE slot. * There is possibly one or two problems that makes it impossible to finish SIMON1WIN. * Sound & Music only works with SIMON1WIN. * SIMON1DOS works, but without sound & music. * Simon 2 works a little. * The code only compiles in win32. It's currently not alignment safe and not endian safe. */ /* GFX Settings. Sound & Music only works properly with SIMON1WIN */ #define USE_SOUND #define USE_MUSIC /* Various other settings */ //#define DUMP_CONTINOUS_MAINSCRIPT //#define DUMP_START_MAINSCRIPT //#define DUMP_CONTINOUS_VGASCRIPT //#define USE_TEXT_HACK //#define DRAW_IMAGES_DEBUG //#define DRAW_THREE_STARS //#define DUMP_START_VGASCRIPT //#define DUMP_FILE_NR 8 //#define DUMP_BITMAPS_FILE_NR 8 //#define DUMP_DRAWN_BITMAPS uint fileReadByte(FILE *in); uint fileReadBE16(FILE *in); uint fileReadLE16(FILE *in); uint32 fileReadBE32(FILE *in); uint32 fileReadLE32(FILE *in); void fileWriteBE32(FILE *in, uint32 value); void fileWriteBE16(FILE *in, uint16 value); #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0])) #define CHECK_BOUNDS(x,y) assert((uint)(x)