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:
parent
c9051fcfbd
commit
0be985ce83
30 changed files with 200 additions and 202 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue