From 855a6db00fa38e53c08d1e8da73d2a8cee7b049a Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 17 Mar 2012 20:01:50 +0000 Subject: [PATCH] mc: add some brackets to make gcc happy and code easier to follow --- desmume/src/mc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 19a56cc18..f50b7264f 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -202,11 +202,15 @@ void fw_reset_com(memory_chip_t *mc) if (fp) { if (fwrite(&mc->data[0x3FF00], 1, 0x100, fp) == 0x100) // User Settings + { if (fwrite(&mc->data[0x0002A], 1, 0x1D6, fp) == 0x1D6) // WiFi Settings + { if (fwrite(&mc->data[0x3FA00], 1, 0x300, fp) == 0x300) // WiFi AP Settings printf(" - done\n"); else printf(" - failed\n"); + } + } fclose(fp); } else