mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
TOOLS: Fix GCC warnings reported by Fingolgin in create_hugo
Also realign arrays to make them (a bit) more readable. These modifications don't modify Hugo.dat svn-id: r53983
This commit is contained in:
parent
c94278fb20
commit
88892dc982
@ -58,6 +58,10 @@ static void writeByte(FILE *fp, uint8 b) {
|
||||
fwrite(&b, 1, 1, fp);
|
||||
}
|
||||
|
||||
static void writeSByte(FILE *fp, int8 b) {
|
||||
fwrite(&b, 1, 1, fp);
|
||||
}
|
||||
|
||||
static void writeUint16BE(FILE *fp, uint16 value) {
|
||||
writeByte(fp, (uint8)(value >> 8));
|
||||
writeByte(fp, (uint8)(value & 0xFF));
|
||||
@ -703,29 +707,29 @@ int main(int argc, char *argv[]) {
|
||||
nbrElem = sizeof(actListArr_3d) / sizeof(actList);
|
||||
writeActListArray(outFile, actListArr_3d, nbrElem);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_1w);
|
||||
writeByte(outFile, SILENCE_1w);
|
||||
writeByte(outFile, TEST_SOUND_1w);
|
||||
writeSByte(outFile, NUM_TUNES_1w);
|
||||
writeSByte(outFile, SILENCE_1w);
|
||||
writeSByte(outFile, TEST_SOUND_1w);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_2w);
|
||||
writeByte(outFile, SILENCE_2w);
|
||||
writeByte(outFile, TEST_SOUND_2w);
|
||||
writeSByte(outFile, NUM_TUNES_2w);
|
||||
writeSByte(outFile, SILENCE_2w);
|
||||
writeSByte(outFile, TEST_SOUND_2w);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_3w);
|
||||
writeByte(outFile, SILENCE_3w);
|
||||
writeByte(outFile, TEST_SOUND_3w);
|
||||
writeSByte(outFile, NUM_TUNES_3w);
|
||||
writeSByte(outFile, SILENCE_3w);
|
||||
writeSByte(outFile, TEST_SOUND_3w);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_1d);
|
||||
writeByte(outFile, SILENCE_1d);
|
||||
writeByte(outFile, TEST_SOUND_1d);
|
||||
writeSByte(outFile, NUM_TUNES_1d);
|
||||
writeSByte(outFile, SILENCE_1d);
|
||||
writeSByte(outFile, TEST_SOUND_1d);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_2d);
|
||||
writeByte(outFile, SILENCE_2d);
|
||||
writeByte(outFile, TEST_SOUND_2d);
|
||||
writeSByte(outFile, NUM_TUNES_2d);
|
||||
writeSByte(outFile, SILENCE_2d);
|
||||
writeSByte(outFile, TEST_SOUND_2d);
|
||||
|
||||
writeByte(outFile, NUM_TUNES_3d);
|
||||
writeByte(outFile, SILENCE_3d);
|
||||
writeByte(outFile, TEST_SOUND_3d);
|
||||
writeSByte(outFile, NUM_TUNES_3d);
|
||||
writeSByte(outFile, SILENCE_3d);
|
||||
writeSByte(outFile, TEST_SOUND_3d);
|
||||
|
||||
// def_tunes_1w
|
||||
nbrElem = sizeof(def_tunes_1w) / sizeof(int16);
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user