fixed windows compile error. Made Hex editor close on rom close + added close to hex editor menu. Also prevented text hooker from being loaded without a rom loaded.
This commit is contained in:
parent
1256d0dd4c
commit
be1ad5f5c3
|
@ -1361,6 +1361,10 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
}
|
}
|
||||||
// ################################## End of SP CODE ###########################
|
// ################################## End of SP CODE ###########################
|
||||||
|
|
||||||
|
case ID_MEMWVIEW_FILE_CLOSE:
|
||||||
|
KillMemView();
|
||||||
|
return 0;
|
||||||
|
|
||||||
case MENU_MV_EDIT_UNDO:
|
case MENU_MV_EDIT_UNDO:
|
||||||
UndoLastPatch();
|
UndoLastPatch();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
void DoMemView();
|
void DoMemView();
|
||||||
|
void KillMemView();
|
||||||
void UpdateMemoryView(int draw_all);
|
void UpdateMemoryView(int draw_all);
|
||||||
void UpdateColorTable();
|
void UpdateColorTable();
|
||||||
void ChangeMemViewFocus(int newEditingMode, int StartOffset,int EndOffset);
|
void ChangeMemViewFocus(int newEditingMode, int StartOffset,int EndOffset);
|
||||||
|
|
|
@ -204,6 +204,8 @@ BEGIN
|
||||||
MENUITEM "&Ram", MENU_MV_FILE_DUMP_RAM
|
MENUITEM "&Ram", MENU_MV_FILE_DUMP_RAM
|
||||||
MENUITEM "&PPU Memory", MENU_MV_FILE_DUMP_PPU
|
MENUITEM "&PPU Memory", MENU_MV_FILE_DUMP_PPU
|
||||||
END
|
END
|
||||||
|
MENUITEM SEPARATOR
|
||||||
|
MENUITEM "Close", ID_MEMWVIEW_FILE_CLOSE
|
||||||
END
|
END
|
||||||
POPUP "&Edit"
|
POPUP "&Edit"
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
|
@ -607,6 +607,8 @@
|
||||||
#define ID_EDIT_BRANCH 40212
|
#define ID_EDIT_BRANCH 40212
|
||||||
#define ID_EDIT_SELECTALL 40214
|
#define ID_EDIT_SELECTALL 40214
|
||||||
#define ID_EDIT_REMOVEMARKER 40215
|
#define ID_EDIT_REMOVEMARKER 40215
|
||||||
|
#define ID_FILE_CLOSECTRL40216 40216
|
||||||
|
#define ID_MEMWVIEW_FILE_CLOSE 40217
|
||||||
#define MW_ValueLabel2 65423
|
#define MW_ValueLabel2 65423
|
||||||
#define MW_ValueLabel1 65426
|
#define MW_ValueLabel1 65426
|
||||||
#define GUI_BOT_DEBUG 65436
|
#define GUI_BOT_DEBUG 65436
|
||||||
|
@ -617,7 +619,7 @@
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 121
|
#define _APS_NEXT_RESOURCE_VALUE 121
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40216
|
#define _APS_NEXT_COMMAND_VALUE 40218
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1150
|
#define _APS_NEXT_CONTROL_VALUE 1150
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -239,7 +239,8 @@ void updateGameDependentMenus(unsigned int enable)
|
||||||
MENU_TRACELOGGER,
|
MENU_TRACELOGGER,
|
||||||
MENU_CDLOGGER,
|
MENU_CDLOGGER,
|
||||||
MENU_GAMEGENIEDECODER,
|
MENU_GAMEGENIEDECODER,
|
||||||
MENU_CHEATS
|
MENU_CHEATS,
|
||||||
|
ID_TOOLS_TEXTHOOKER
|
||||||
};
|
};
|
||||||
|
|
||||||
for (unsigned int i = 0; i < sizeof(menu_ids) / sizeof(*menu_ids); i++)
|
for (unsigned int i = 0; i < sizeof(menu_ids) / sizeof(*menu_ids); i++)
|
||||||
|
@ -1090,7 +1091,8 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
|
||||||
// User selected the Close File menu => Close the game if necessary
|
// User selected the Close File menu => Close the game if necessary
|
||||||
if(GameInfo)
|
if(GameInfo)
|
||||||
{
|
{
|
||||||
FCEUI_CloseGame();
|
FCEUI_CloseGame();
|
||||||
|
KillMemView();
|
||||||
updateGameDependentMenus(GameInfo != 0);
|
updateGameDependentMenus(GameInfo != 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1183,6 +1183,14 @@
|
||||||
RelativePath="..\src\drivers\win\tasedit.h"
|
RelativePath="..\src\drivers\win\tasedit.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\drivers\win\texthook.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\drivers\win\texthook.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\drivers\win\throttle.cpp"
|
RelativePath="..\src\drivers\win\throttle.cpp"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue