diff --git a/desmume/src/MMU.h b/desmume/src/MMU.h index 6fcd66ea1..a8aa6d6bb 100644 --- a/desmume/src/MMU.h +++ b/desmume/src/MMU.h @@ -171,19 +171,20 @@ public: void tryTrigger(EDMAMode mode); DmaController() : - enable(0), irq(0), bitWidth(EDMABitWidth_16), repeatMode(0), _startmode(0), + enable(0), irq(0), repeatMode(0), _startmode(0), + wordcount(0), startmode(EDMAMode_Immediate), + bitWidth(EDMABitWidth_16), + sar(EDMASourceUpdate_Increment), dar(EDMADestinationUpdate_Increment), //if saddr isnt cleared then rings of fate will trigger copy protection //by inspecting dma3 saddr when it boots saddr(0), daddr(0), - sar(EDMASourceUpdate_Increment), dar(EDMADestinationUpdate_Increment), - wordcount(0), startmode(EDMAMode_Immediate), - sad(&saddr), - dad(&daddr), check(FALSE), running(FALSE), paused(FALSE), triggered(FALSE), - nextEvent(0) + nextEvent(0), + sad(&saddr), + dad(&daddr) { sad.controller = this; dad.controller = this; diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index c6621c071..d1f6799e3 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -421,19 +421,19 @@ int NDS_WriteBMP_32bppBuffer(int width, int height, const void* buf, const char extern struct TCommonSettings { TCommonSettings() - : UseExtBIOS(false) + : GFX3D_HighResolutionInterpolateColor(true) + , GFX3D_EdgeMark(true) + , GFX3D_Fog(true) + , UseExtBIOS(false) , SWIFromBIOS(false) , UseExtFirmware(false) , BootFromFirmware(false) , DebugConsole(false) - , num_cores(1) - , spuInterpolationMode(SPUInterpolation_Linear) //, gfx3d_flushMode(0) - , manualBackupType(0) + , num_cores(1) , micMode(InternalNoise) - , GFX3D_HighResolutionInterpolateColor(true) - , GFX3D_EdgeMark(true) - , GFX3D_Fog(true) + , spuInterpolationMode(SPUInterpolation_Linear) + , manualBackupType(0) { strcpy(ARM9BIOS, "biosnds9.bin"); strcpy(ARM7BIOS, "biosnds7.bin");