diff options
author | Eugene Sandulenko | 2016-10-21 21:33:30 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:01 +0100 |
commit | 577bae3f3d611dfea334e7d15e0e7275e6eb37fc (patch) | |
tree | e6ace328a12c696676b63becfa7d869eae4ea514 | |
parent | afd6e5dea5d7a2b3f470248e21d45330f94ed9cb (diff) | |
download | scummvm-rg350-577bae3f3d611dfea334e7d15e0e7275e6eb37fc.tar.gz scummvm-rg350-577bae3f3d611dfea334e7d15e0e7275e6eb37fc.tar.bz2 scummvm-rg350-577bae3f3d611dfea334e7d15e0e7275e6eb37fc.zip |
JANITORIAL: Fix code formatting
-rw-r--r-- | devtools/create_cryo/create_led_dat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/devtools/create_cryo/create_led_dat.cpp b/devtools/create_cryo/create_led_dat.cpp index 21b6ebaba7..9a9c1ed658 100644 --- a/devtools/create_cryo/create_led_dat.cpp +++ b/devtools/create_cryo/create_led_dat.cpp @@ -6,7 +6,7 @@ template <typename T> static void writeLE(FILE *f, T value) { - for(int i = 0;i < sizeof(value);i++, value >>= 8) { + for (int i = 0; i < sizeof(value); i++, value >>= 8) { unsigned char b = value & 0xFF; fwrite(&b, 1, 1, f); } @@ -26,7 +26,7 @@ struct _icon_t : icon_t { static void emitIcons(FILE *f) { _icon_t *icons = (_icon_t*)gameIcons; - for(int i = 0;i < kNumIcons;i++) + for (int i = 0; i < kNumIcons; i++) icons[i].write(f); } @@ -49,13 +49,13 @@ struct _room_t : room_t { static void emitRooms(FILE *f) { _room_t *rooms = (_room_t*)gameRooms; - for(int i = 0;i < kNumRooms;i++) + for (int i = 0; i < kNumRooms; i++) rooms[i].write(f); } static int emitData(char *outputFilename) { FILE *f = fopen(outputFilename, "w+b"); - if(!f) { + if (!f) { printf("ERROR: Unable to create output file %s\n", outputFilename); return 1; } @@ -74,7 +74,7 @@ static int emitData(char *outputFilename) { int main(int argc, char **argv) { - if(argc > 1) + if (argc > 1) return emitData(argv[1]); else printf("Usage: %s <output.dat>\n", argv[0]); |