From 7cb5d4890781eb8d0f7dc3e031a0fef6dd87be1a Mon Sep 17 00:00:00 2001 From: luigi__ Date: Thu, 4 Jun 2009 21:27:31 +0000 Subject: [PATCH] Re-add writing to firmware because I need it for testing wifi stuff. --- desmume/src/mc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 8ca470dfd..09c24ce69 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -133,8 +133,8 @@ void mc_free(memory_chip_t *mc) void fw_reset_com(memory_chip_t *mc) { - //not supporting writing back to the firmware right now, so nothing to be done here - mc->com = 0; + mc->com = 0; + fwrite(mc->data, 0x40000, 1, mc->fp); } u8 fw_transfer(memory_chip_t *mc, u8 data)