From 0c9e7659d903bb5a171e36c8a39ff7a285b9ac23 Mon Sep 17 00:00:00 2001 From: owomomo Date: Mon, 10 Jun 2019 20:59:36 +0800 Subject: [PATCH] Detail --- src/cart.h | 4 ++++ src/drivers/win/cheat.cpp | 4 ++++ src/ines.h | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/src/cart.h b/src/cart.h index 249e0c56..312b2366 100644 --- a/src/cart.h +++ b/src/cart.h @@ -1,3 +1,6 @@ +#ifndef CART_H +#define CART_H + typedef struct { // Set by mapper/board code: void (*Power)(void); @@ -100,3 +103,4 @@ void FCEU_GeniePower(void); bool FCEU_OpenGenie(void); void FCEU_CloseGenie(void); void FCEU_KillGenie(void); +#endif \ No newline at end of file diff --git a/src/drivers/win/cheat.cpp b/src/drivers/win/cheat.cpp index d8e8d121..52a846a9 100644 --- a/src/drivers/win/cheat.cpp +++ b/src/drivers/win/cheat.cpp @@ -1001,6 +1001,10 @@ BOOL CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) GGConv_wndy = 0; SetWindowPos(hwndDlg, 0, GGConv_wndx, GGConv_wndy, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); SendDlgItemMessage(hwndDlg, IDC_GAME_GENIE_CODE, EM_SETLIMITTEXT, 8, 0); + SendDlgItemMessage(hwndDlg, IDC_GAME_GENIE_ADDR, EM_SETLIMITTEXT, 5, 0); + SendDlgItemMessage(hwndDlg, IDC_GAME_GENIE_COMP, EM_SETLIMITTEXT, 2, 0); + SendDlgItemMessage(hwndDlg, IDC_GAME_GENIE_VAL, EM_SETLIMITTEXT, 2, 0); + break; case WM_CLOSE: case WM_QUIT: diff --git a/src/ines.h b/src/ines.h index 55ab87ad..caa095fd 100644 --- a/src/ines.h +++ b/src/ines.h @@ -274,4 +274,9 @@ void Mapper252_Init(CartInfo *); void Mapper253_Init(CartInfo *); void Mapper254_Init(CartInfo *); +typedef struct { + char *name; + int32 number; + void (*init)(CartInfo *); +} BMAPPINGLocal; #endif