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:
adelikat 2008-07-03 13:24:59 +00:00
parent 1256d0dd4c
commit be1ad5f5c3
6 changed files with 22 additions and 3 deletions

View File

@ -1361,6 +1361,10 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
}
// ################################## End of SP CODE ###########################
case ID_MEMWVIEW_FILE_CLOSE:
KillMemView();
return 0;
case MENU_MV_EDIT_UNDO:
UndoLastPatch();
return 0;

View File

@ -1,4 +1,5 @@
void DoMemView();
void KillMemView();
void UpdateMemoryView(int draw_all);
void UpdateColorTable();
void ChangeMemViewFocus(int newEditingMode, int StartOffset,int EndOffset);

View File

@ -204,6 +204,8 @@ BEGIN
MENUITEM "&Ram", MENU_MV_FILE_DUMP_RAM
MENUITEM "&PPU Memory", MENU_MV_FILE_DUMP_PPU
END
MENUITEM SEPARATOR
MENUITEM "Close", ID_MEMWVIEW_FILE_CLOSE
END
POPUP "&Edit"
BEGIN

View File

@ -607,6 +607,8 @@
#define ID_EDIT_BRANCH 40212
#define ID_EDIT_SELECTALL 40214
#define ID_EDIT_REMOVEMARKER 40215
#define ID_FILE_CLOSECTRL40216 40216
#define ID_MEMWVIEW_FILE_CLOSE 40217
#define MW_ValueLabel2 65423
#define MW_ValueLabel1 65426
#define GUI_BOT_DEBUG 65436
@ -617,7 +619,7 @@
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#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_SYMED_VALUE 101
#endif

View File

@ -239,7 +239,8 @@ void updateGameDependentMenus(unsigned int enable)
MENU_TRACELOGGER,
MENU_CDLOGGER,
MENU_GAMEGENIEDECODER,
MENU_CHEATS
MENU_CHEATS,
ID_TOOLS_TEXTHOOKER
};
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
if(GameInfo)
{
FCEUI_CloseGame();
FCEUI_CloseGame();
KillMemView();
updateGameDependentMenus(GameInfo != 0);
}
break;

View File

@ -1183,6 +1183,14 @@
RelativePath="..\src\drivers\win\tasedit.h"
>
</File>
<File
RelativePath="..\src\drivers\win\texthook.cpp"
>
</File>
<File
RelativePath="..\src\drivers\win\texthook.h"
>
</File>
<File
RelativePath="..\src\drivers\win\throttle.cpp"
>