Mercurial > hg > forks > yadex
comparison src/wads.cc @ 83:002bc70a3982
More cleanups. Mostly variable renames.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 18:06:30 +0300 |
parents | 2f1ecc1c5f72 |
children | f05330267c66 |
comparison
equal
deleted
inserted
replaced
82:154714f3ab2e | 83:002bc70a3982 |
---|---|
198 output bytes to a binary file with error checking | 198 output bytes to a binary file with error checking |
199 */ | 199 */ |
200 | 200 |
201 void WriteBytes(FILE * file, const void *buf, long size) | 201 void WriteBytes(FILE * file, const void *buf, long size) |
202 { | 202 { |
203 if (!cfg.Registered) | 203 if (!cfg.registered) |
204 return; | 204 return; |
205 | 205 |
206 while (size > 0x8000) | 206 while (size > 0x8000) |
207 { | 207 { |
208 if (fwrite(buf, 1, 0x8000, file) != 0x8000) | 208 if (fwrite(buf, 1, 0x8000, file) != 0x8000) |