diff --git a/src/engine/platform/nds.cpp b/src/engine/platform/nds.cpp index 615c05a6d..006b3f1dc 100644 --- a/src/engine/platform/nds.cpp +++ b/src/engine/platform/nds.cpp @@ -517,11 +517,19 @@ bool DivPlatformNDS::isSampleLoaded(int index, int sample) { return sampleLoaded[sample]; } +const DivMemoryComposition* DivPlatformNDS::getMemCompo(int index) { + if (index!=0) return NULL; + return &memCompo; +} + void DivPlatformNDS::renderSamples(int sysID) { memset(sampleMem,0,16777216); memset(sampleOff,0,256*sizeof(unsigned int)); memset(sampleLoaded,0,256*sizeof(bool)); + memCompo=DivMemoryComposition(); + memCompo.name="Main Memory"; + size_t memPos=0; for (int i=0; isong.sampleLen; i++) { DivSample* s=parent->song.sample[i]; @@ -536,7 +544,8 @@ void DivPlatformNDS::renderSamples(int sysID) { if (actualLength>0) { memcpy(&sampleMem[memPos],src,actualLength); sampleOff[i]=memPos; - memPos+=length; + memCompo.entries.push_back(DivMemoryEntry(DIV_MEMORY_SAMPLE,"Sample",i,memPos,memPos+actualLength)); + memPos+=actualLength; } if (actualLength