From a4c181ee3a948c2d2865197fa7c0c71aa389d357 Mon Sep 17 00:00:00 2001 From: ugetab Date: Fri, 7 Aug 2009 20:14:06 +0000 Subject: [PATCH] Disables logging of $3800-$3824 NSF control program instructions in Trace Logger. Minor text edit to a dialog box title. --- src/drivers/win/cdlogger.cpp | 2 +- src/drivers/win/tracer.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drivers/win/cdlogger.cpp b/src/drivers/win/cdlogger.cpp index cd2c610e..d6ed5bde 100644 --- a/src/drivers/win/cdlogger.cpp +++ b/src/drivers/win/cdlogger.cpp @@ -333,7 +333,7 @@ void SaveStrippedRom(){ //this is based off of iNesSave() memset(&ofn,0,sizeof(ofn)); ofn.lStructSize=sizeof(ofn); ofn.hInstance=fceu_hInstance; - ofn.lpstrTitle="Save Stripped file As..."; + ofn.lpstrTitle="Save Stripped File As..."; if (GameInfo->type==GIT_NSF) { ofn.lpstrFilter=NSFfilter; } diff --git a/src/drivers/win/tracer.cpp b/src/drivers/win/tracer.cpp index f67e93a9..d0598e57 100644 --- a/src/drivers/win/tracer.cpp +++ b/src/drivers/win/tracer.cpp @@ -319,6 +319,8 @@ void FCEUD_TraceInstruction(){ uint8 opcode[3], tmp; static int unloggedlines; + if((GameInfo->type==GIT_NSF) && (addr >= 0x3800) && (addr <= 0x3824)) return; + if(((logging_options & LOG_NEW_INSTRUCTIONS) && (oldcodecount != codecount)) || ((logging_options & LOG_NEW_DATA) && (olddatacount != datacount))){//something new was logged oldcodecount = codecount;