diff --git a/Source/Core/Common/Src/CommonPaths.h b/Source/Core/Common/Src/CommonPaths.h index d319fb541e..4441cfb8d7 100644 --- a/Source/Core/Common/Src/CommonPaths.h +++ b/Source/Core/Common/Src/CommonPaths.h @@ -121,6 +121,8 @@ #define GC_MEMCARDA "MemoryCardA" #define GC_MEMCARDB "MemoryCardB" +#define WII_STATE "state.dat" + #define WII_SETTING "setting.txt" #define WII_EUR_SETTING "setting-eur.txt" #define WII_USA_SETTING "setting-usa.txt" diff --git a/Source/Core/Core/Src/Boot/Boot_WiiWAD.cpp b/Source/Core/Core/Src/Boot/Boot_WiiWAD.cpp index 05559281c2..d3fa172621 100644 --- a/Source/Core/Core/Src/Boot/Boot_WiiWAD.cpp +++ b/Source/Core/Core/Src/Boot/Boot_WiiWAD.cpp @@ -32,8 +32,57 @@ #include "VolumeCreator.h" #include "CommonPaths.h" +static u32 state_checksum(u32 *buf, int len) +{ + u32 checksum = 0; + len = len>>2; + + for(int i=0; im_WiiMotes[i].Activate(false); } } - + + WII_IPC_HLE_Interface::SetDefaultContentFile(tContentFile); } // Pass the "#002 check" // Apploader should write the IOS version and revision to 0x3140, and compare it