Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing

svn-id: r33412
This commit is contained in:
Max Horn 2008-07-29 16:09:10 +00:00
parent c9051fcfbd
commit 0be985ce83
30 changed files with 200 additions and 202 deletions

View file

@ -393,11 +393,11 @@ static const byte bmp_hdr[] = {
};
void dumpBMP(const char *filename, int w, int h, const byte *bytes, const uint32 *palette) {
Common::File out;
Common::DumpFile out;
byte my_hdr[sizeof(bmp_hdr)];
int i;
out.open(filename, Common::File::kFileWriteMode);
out.open(filename);
if (!out.isOpen())
return;