diff --git a/desmume/src/frontend/interface/interface.cpp b/desmume/src/frontend/interface/interface.cpp index 2437b3e56..9eb14f0cb 100644 --- a/desmume/src/frontend/interface/interface.cpp +++ b/desmume/src/frontend/interface/interface.cpp @@ -98,21 +98,21 @@ EXPORTED void desmume_set_language(u8 lang) EXPORTED int desmume_open(const char *filename) { int i; - if (rom_opened) { - NDS_FreeROM(); - } + if (rom_opened) { + NDS_FreeROM(); + } clear_savestates(); i = NDS_LoadROM(filename); - if (i > 0) { - rom_opened = true; - } + if (i > 0) { + rom_opened = true; + } return i; } EXPORTED void desmume_close() { - NDS_FreeROM(); - rom_opened = false; + NDS_FreeROM(); + rom_opened = false; } EXPORTED void desmume_set_savetype(int type) {