MCPcopy Create free account
hub / github.com/TASEmulators/fceux / ResetCDLog

Function ResetCDLog

src/drivers/Qt/CodeDataLogger.cpp:812–848  ·  view source on GitHub ↗

----------------------------------------------------

Source from the content-addressed store, hash-verified

810}
811//----------------------------------------------------
812void ResetCDLog(void)
813{
814 if (GameInfo == NULL)
815 {
816 return;
817 }
818 FCEU_WRAPPER_LOCK();
819
820 codecount = datacount = rendercount = vromreadcount = 0;
821 undefinedcount = cdloggerdataSize;
822
823 if (cdloggerdata != NULL)
824 {
825 memset(cdloggerdata, 0, cdloggerdataSize);
826 }
827 if (cdloggerVideoDataSize != 0)
828 {
829 undefinedvromcount = cdloggerVideoDataSize;
830
831 if (cdloggervdata != NULL)
832 {
833 memset(cdloggervdata, 0, cdloggerVideoDataSize);
834 }
835 }
836 else
837 {
838 if (GameInfo->type != GIT_NSF)
839 {
840 undefinedvromcount = 8192;
841 if (cdloggervdata != NULL)
842 {
843 memset(cdloggervdata, 0, 8192);
844 }
845 }
846 }
847 FCEU_WRAPPER_UNLOCK();
848}
849//----------------------------------------------------
850bool LoadCDLog(const char *nameo)
851{

Callers 2

ResetCDLogClickedMethod · 0.70
CDLoggerROMChangedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected