diff --git a/Source/DSPSpy/main_spy.cpp b/Source/DSPSpy/main_spy.cpp index 108ab93212..b19e7afe16 100644 --- a/Source/DSPSpy/main_spy.cpp +++ b/Source/DSPSpy/main_spy.cpp @@ -33,6 +33,8 @@ #ifdef HW_RVL #include #include +#else +#include #endif #include "ConsoleHelper.h" @@ -218,7 +220,6 @@ void UpdateLastMessage(const char* msg) void DumpDSP_ROMs(const u16* rom, const u16* coef) { -#ifdef HW_RVL char filename[260] = {0}; sprintf(filename, "sd:/dsp_rom.bin"); FILE *fROM = fopen(filename, "wb"); @@ -241,10 +242,6 @@ void DumpDSP_ROMs(const u16* rom, const u16* coef) fclose(fROM); if (fCOEF) fclose(fCOEF); -#else - // Allow to connect to gdb (dump ram... :s) - _break(); -#endif } void ui_pad_sel(void) @@ -552,6 +549,9 @@ void InitGeneral() __io_wiisd.startup(); fatMountSimple("sd", &__io_wiisd); #else + // Initialize FAT so we can write to SD Gecko in slot B. + fatMountSimple("sd", &__io_gcsdb); + // Init debug over BBA...change IPs to suite your needs tcp_localip="192.168.1.103"; tcp_netmask="255.255.255.0"; @@ -562,8 +562,8 @@ void InitGeneral() void ExitToLoader() { -#ifdef HW_RVL fatUnmount("sd"); +#ifdef HW_RVL __io_wiisd.shutdown(); #endif