minor fixes for Debugger, Tracer, Hexeditor, Taseditor

This commit is contained in:
ansstuff 2012-09-02 12:17:50 +00:00
parent 13c770ef6e
commit 9ff1257907
7 changed files with 24 additions and 19 deletions

View File

@ -1,3 +1,5 @@
01-Sep-2012 - AnS - fixed movie savestates logic, loading post-movie savestates is not allowed in read-only
31-Aug-2012 - zeromus - update mapper 156 from fceu-mm sources
30-Aug-2012 - AnS - fixed savestates filenaming bug when working with a movie 30-Aug-2012 - AnS - fixed savestates filenaming bug when working with a movie
29-Aug-2012 - AnS - added "Force Grayscale" checkbox to Palette config 29-Aug-2012 - AnS - added "Force Grayscale" checkbox to Palette config
26-Aug-2012 - AnS - Taseditor: History Log highlights items related to current item 26-Aug-2012 - AnS - Taseditor: History Log highlights items related to current item

View File

@ -1144,11 +1144,6 @@ void LoadGameDebuggerData(HWND hwndDlg = hDebug) {
} }
} }
if (symbDebugEnabled)
{
CheckDlgButton(hwndDlg, IDC_DEBUGGER_ENABLE_SYMBOLIC, BST_CHECKED);
}
ClearBreakList(hwndDlg); ClearBreakList(hwndDlg);
numWPs = myNumWPs; numWPs = myNumWPs;
@ -1210,17 +1205,20 @@ BOOL CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
{ {
case WM_INITDIALOG: case WM_INITDIALOG:
{ {
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, break_on_cycles ? MF_CHECKED : MF_UNCHECKED); CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, break_on_cycles ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, break_on_instructions ? MF_CHECKED : MF_UNCHECKED); CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, break_on_instructions ? BST_CHECKED : BST_UNCHECKED);
sprintf(str, "%d", break_cycles_limit); sprintf(str, "%d", break_cycles_limit);
SetDlgItemText(hwndDlg, IDC_DEBUGGER_CYCLES_EXCEED, str); SetDlgItemText(hwndDlg, IDC_DEBUGGER_CYCLES_EXCEED, str);
sprintf(str, "%d", break_instructions_limit); sprintf(str, "%d", break_instructions_limit);
SetDlgItemText(hwndDlg, IDC_DEBUGGER_INSTRUCTIONS_EXCEED, str); SetDlgItemText(hwndDlg, IDC_DEBUGGER_INSTRUCTIONS_EXCEED, str);
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_BAD_OP, FCEUI_Debugger().badopbreak ? MF_CHECKED : MF_UNCHECKED); CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_BAD_OP, FCEUI_Debugger().badopbreak ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, DEBUGLOADDEB, debuggerSaveLoadDEBFiles ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, DEBUGAUTOLOAD, debuggerAutoload ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_DEBUGGER_ROM_OFFSETS, debuggerDisplayROMoffsets ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_DEBUGGER_ENABLE_SYMBOLIC, symbDebugEnabled ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, DEBUGLOADDEB, debuggerSaveLoadDEBFiles ? MF_CHECKED : MF_UNCHECKED);
CheckDlgButton(hwndDlg, DEBUGAUTOLOAD, debuggerAutoload ? MF_CHECKED : MF_UNCHECKED);
if (DbgPosX==-32000) DbgPosX=0; //Just in case if (DbgPosX==-32000) DbgPosX=0; //Just in case
if (DbgPosY==-32000) DbgPosY=0; if (DbgPosY==-32000) DbgPosY=0;
SetWindowPos(hwndDlg,0,DbgPosX,DbgPosY,0,0,SWP_NOSIZE|SWP_NOZORDER|SWP_NOOWNERZORDER); SetWindowPos(hwndDlg,0,DbgPosX,DbgPosY,0,0,SWP_NOSIZE|SWP_NOZORDER|SWP_NOOWNERZORDER);

View File

@ -518,7 +518,8 @@ void UpdateMemoryView(int draw_all)
return; return;
} }
void UpdateCaption(){ void UpdateCaption()
{
char str[100]; char str[100];
char EditString[3][20] = {"RAM","PPU Memory","ROM"}; char EditString[3][20] = {"RAM","PPU Memory","ROM"};
@ -1696,7 +1697,8 @@ void DoMemView() {
// return; // return;
//} //}
if (!hMemView){ if (!hMemView)
{
memset(&wndclass,0,sizeof(wndclass)); memset(&wndclass,0,sizeof(wndclass));
wndclass.cbSize=sizeof(WNDCLASSEX); wndclass.cbSize=sizeof(WNDCLASSEX);
wndclass.style = CS_HREDRAW | CS_VREDRAW ; wndclass.style = CS_HREDRAW | CS_VREDRAW ;
@ -1720,11 +1722,16 @@ void DoMemView() {
NULL,NULL,fceu_hInstance,NULL ); NULL,NULL,fceu_hInstance,NULL );
ShowWindow (hMemView, SW_SHOW) ; ShowWindow (hMemView, SW_SHOW) ;
UpdateCaption(); UpdateCaption();
} else
{
SetWindowPos(hMemView, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOOWNERZORDER);
UpdateCaption();
} }
DragAcceptFiles(hMemView, 1); DragAcceptFiles(hMemView, 1);
if (hMemView) { if (hMemView)
{
//UpdateMemView(0); //UpdateMemView(0);
//MemViewDoBlit(); //MemViewDoBlit();
} }

View File

@ -127,12 +127,12 @@ void LAGLOG::SetLagInfo(int frame, bool lagFlag)
} }
void LAGLOG::EraseFrame(int frame) void LAGLOG::EraseFrame(int frame)
{ {
if (lag_log.size() > frame) if (frame < (int)lag_log.size())
lag_log.erase(lag_log.begin() + (currFrameCounter - 1)); lag_log.erase(lag_log.begin() + (currFrameCounter - 1));
} }
void LAGLOG::InsertFrame(int frame, bool lagFlag, int frames) void LAGLOG::InsertFrame(int frame, bool lagFlag, int frames)
{ {
if (lag_log.size() > frame) if (frame < lag_log.size())
// insert // insert
lag_log.insert(lag_log.begin() + frame, frames, (lagFlag) ? 1 : 0); lag_log.insert(lag_log.begin() + frame, frames, (lagFlag) ? 1 : 0);
else else

View File

@ -110,7 +110,6 @@ void SPLICER::CloneFrames()
if (!frames) return; if (!frames) return;
selection.ClearSelection(); // Selection will be moved down, so that same frames are selected selection.ClearSelection(); // Selection will be moved down, so that same frames are selected
int i;
bool markers_changed = false; bool markers_changed = false;
currMovieData.records.reserve(currMovieData.getNumRecords() + frames); currMovieData.records.reserve(currMovieData.getNumRecords() + frames);
// insert frames before each selection, but consecutive Selection lines are accounted as single region // insert frames before each selection, but consecutive Selection lines are accounted as single region

View File

@ -527,7 +527,7 @@ void UpdateLogWindow(void)
void UpdateLogText(void){ void UpdateLogText(void){
int i, j; int i, j;
char str[2048]; char str[3000];
str[0] = 0; str[0] = 0;
/* /*
for(i = 21;i > 0;i--){ for(i = 21;i > 0;i--){

View File

@ -1301,8 +1301,7 @@ bool FCEUMOV_ReadState(EMUFILE* is, uint32 size)
return false; return false;
} else if (movieMode == MOVIEMODE_FINISHED } else if (movieMode == MOVIEMODE_FINISHED
&& currFrameCounter > (int)currMovieData.records.size() && currFrameCounter > (int)currMovieData.records.size()
&& currMovieData.records.size() == tempMovieData.records.size() && currMovieData.records.size() == tempMovieData.records.size())
&& frame_of_mismatch < 0)
{ {
// special case (in MOVIEMODE_FINISHED mode) // special case (in MOVIEMODE_FINISHED mode)
// allow loading post-movie savestates that were made after finishing current movie // allow loading post-movie savestates that were made after finishing current movie