MCPcopy Create free account
hub / github.com/WilliamLCobb/iNDS / NDS_FreeROM

Function NDS_FreeROM

desmume/src/NDSSystem.cpp:660–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void NDS_FreeROM(void)
661{
662 FCEUI_StopMovie();
663 if ((u8*)MMU.CART_ROM == (u8*)gameInfo.romdata)
664 gameInfo.romdata = NULL;
665 if (MMU.CART_ROM != MMU.UNUSED_RAM)
666 {
667 if(!useMmapForRomLoading)
668 delete [] MMU.CART_ROM;
669 else
670 gameInfo.cleanup();
671 }
672 MMU_unsetRom();
673}
674
675u32 NDS_ImportSaveSize(const char *filename)
676{

Callers 4

EMU_closeRomFunction · 0.85
NDS_DeInitFunction · 0.85
rom_init_pathFunction · 0.85
JNI_NOARGSFunction · 0.85

Calls 3

MMU_unsetRomFunction · 0.85
cleanupMethod · 0.80
FCEUI_StopMovieFunction · 0.70

Tested by

no test coverage detected