2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-08-25 01:50:27 +00:00
|
|
|
// This file holds global data for DolphinWx and DebuggerWx
|
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <wx/event.h>
|
2009-02-01 20:20:58 +00:00
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
enum
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
// Emulation menu
|
|
|
|
IDM_LOAD_STATE = 200,
|
|
|
|
IDM_SAVE_STATE,
|
|
|
|
IDM_SELECT_SLOT,
|
|
|
|
IDM_SAVE_FIRST_STATE,
|
|
|
|
IDM_UNDO_LOAD_STATE,
|
|
|
|
IDM_UNDO_SAVE_STATE,
|
|
|
|
IDM_LOAD_STATE_FILE,
|
|
|
|
IDM_SAVE_STATE_FILE,
|
|
|
|
IDM_SAVE_SLOT_1,
|
|
|
|
IDM_SAVE_SLOT_2,
|
|
|
|
IDM_SAVE_SLOT_3,
|
|
|
|
IDM_SAVE_SLOT_4,
|
|
|
|
IDM_SAVE_SLOT_5,
|
|
|
|
IDM_SAVE_SLOT_6,
|
|
|
|
IDM_SAVE_SLOT_7,
|
|
|
|
IDM_SAVE_SLOT_8,
|
|
|
|
IDM_SAVE_SLOT_9,
|
|
|
|
IDM_SAVE_SLOT_10,
|
|
|
|
IDM_LOAD_SLOT_1,
|
|
|
|
IDM_LOAD_SLOT_2,
|
|
|
|
IDM_LOAD_SLOT_3,
|
|
|
|
IDM_LOAD_SLOT_4,
|
|
|
|
IDM_LOAD_SLOT_5,
|
|
|
|
IDM_LOAD_SLOT_6,
|
|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OW_FRAME_COUNT,
|
|
|
|
IDM_SHOW_INPUT_DISPLAY,
|
2016-07-20 00:23:25 +00:00
|
|
|
IDM_SHOW_RTC_DISPLAY,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_FRAMESTEP,
|
|
|
|
IDM_SCREENSHOT,
|
|
|
|
IDM_TOGGLE_DUMP_FRAMES,
|
|
|
|
IDM_TOGGLE_DUMP_AUDIO,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// File menu
|
|
|
|
IDM_DRIVES,
|
|
|
|
IDM_DRIVE1,
|
|
|
|
IDM_DRIVE24 = IDM_DRIVE1 + 23, // 248,
|
2009-04-28 02:30:50 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Tools menu
|
|
|
|
IDM_MEMCARD,
|
|
|
|
IDM_CHEATS,
|
|
|
|
IDM_NETPLAY,
|
|
|
|
IDM_RESTART,
|
2017-09-17 09:35:26 +00:00
|
|
|
IDM_EJECT_DISC,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_CHANGE_DISC,
|
|
|
|
IDM_LIST_CHANGE_DISC,
|
|
|
|
IDM_PROPERTIES,
|
|
|
|
IDM_GAME_WIKI,
|
|
|
|
IDM_LOAD_WII_MENU,
|
|
|
|
IDM_MENU_INSTALL_WAD,
|
2017-07-04 16:23:25 +00:00
|
|
|
IDM_LIST_PERFORM_DISC_UPDATE,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_LIST_INSTALL_WAD,
|
2017-04-25 21:29:48 +00:00
|
|
|
IDM_LIST_UNINSTALL_WAD,
|
2017-03-19 07:00:49 +00:00
|
|
|
IDM_IMPORT_NAND,
|
2017-10-03 14:45:59 +00:00
|
|
|
IDM_CHECK_NAND,
|
2017-03-19 07:00:49 +00:00
|
|
|
IDM_EXTRACT_CERTIFICATES,
|
2017-06-13 23:22:03 +00:00
|
|
|
IDM_PERFORM_ONLINE_UPDATE_CURRENT,
|
|
|
|
IDM_PERFORM_ONLINE_UPDATE_EUR,
|
|
|
|
IDM_PERFORM_ONLINE_UPDATE_JPN,
|
|
|
|
IDM_PERFORM_ONLINE_UPDATE_KOR,
|
|
|
|
IDM_PERFORM_ONLINE_UPDATE_USA,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_FIFOPLAYER,
|
2017-06-04 08:20:16 +00:00
|
|
|
IDM_LOAD_GC_IPL_JAP,
|
|
|
|
IDM_LOAD_GC_IPL_USA,
|
|
|
|
IDM_LOAD_GC_IPL_EUR,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_CONNECT_WIIMOTE1,
|
|
|
|
IDM_CONNECT_WIIMOTE2,
|
|
|
|
IDM_CONNECT_WIIMOTE3,
|
|
|
|
IDM_CONNECT_WIIMOTE4,
|
|
|
|
IDM_CONNECT_BALANCEBOARD,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// View menu
|
|
|
|
IDM_LIST_WAD,
|
|
|
|
IDM_LIST_WII,
|
|
|
|
IDM_LIST_GC,
|
|
|
|
IDM_LIST_ELFDOL,
|
|
|
|
IDM_LIST_JAP,
|
|
|
|
IDM_LIST_PAL,
|
|
|
|
IDM_LIST_USA,
|
|
|
|
IDM_LIST_AUSTRALIA,
|
|
|
|
IDM_LIST_FRANCE,
|
|
|
|
IDM_LIST_GERMANY,
|
|
|
|
IDM_LIST_ITALY,
|
|
|
|
IDM_LIST_KOREA,
|
|
|
|
IDM_LIST_NETHERLANDS,
|
|
|
|
IDM_LIST_RUSSIA,
|
|
|
|
IDM_LIST_SPAIN,
|
|
|
|
IDM_LIST_TAIWAN,
|
|
|
|
IDM_LIST_WORLD,
|
|
|
|
IDM_LIST_UNKNOWN,
|
|
|
|
IDM_LIST_DRIVES,
|
|
|
|
IDM_PURGE_GAME_LIST_CACHE,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Help menu
|
|
|
|
IDM_HELP_WEBSITE,
|
|
|
|
IDM_HELP_ONLINE_DOCS,
|
|
|
|
IDM_HELP_GITHUB,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Options menu
|
|
|
|
IDM_CONFIG_GFX_BACKEND,
|
|
|
|
IDM_CONFIG_AUDIO,
|
|
|
|
IDM_CONFIG_CONTROLLERS,
|
|
|
|
IDM_CONFIG_HOTKEYS,
|
|
|
|
IDM_CONFIG_LOGGER,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Views
|
2016-10-03 07:29:50 +00:00
|
|
|
// IMPORTANT: Make sure IDM_FLOAT_xxx and IDM_xxx_PARENT are kept in sync!
|
|
|
|
IDM_DEBUG_WINDOW_LIST_START, // Bookend for doing array lookups
|
|
|
|
IDM_LOG_WINDOW = IDM_DEBUG_WINDOW_LIST_START,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_LOG_CONFIG_WINDOW,
|
|
|
|
IDM_REGISTER_WINDOW,
|
|
|
|
IDM_WATCH_WINDOW,
|
|
|
|
IDM_BREAKPOINT_WINDOW,
|
|
|
|
IDM_MEMORY_WINDOW,
|
|
|
|
IDM_JIT_WINDOW,
|
|
|
|
IDM_SOUND_WINDOW,
|
|
|
|
IDM_VIDEO_WINDOW,
|
|
|
|
IDM_CODE_WINDOW,
|
2016-10-03 07:29:50 +00:00
|
|
|
IDM_DEBUG_WINDOW_LIST_END, // Bookend for doing array lookups
|
2014-06-04 13:54:48 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// List Column Title Toggles
|
2016-10-03 07:29:50 +00:00
|
|
|
IDM_SHOW_SYSTEM = IDM_DEBUG_WINDOW_LIST_END,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_SHOW_BANNER,
|
2017-04-17 17:34:14 +00:00
|
|
|
IDM_SHOW_TITLE,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_SHOW_MAKER,
|
|
|
|
IDM_SHOW_FILENAME,
|
|
|
|
IDM_SHOW_ID,
|
|
|
|
IDM_SHOW_REGION,
|
|
|
|
IDM_SHOW_SIZE,
|
2014-06-04 13:54:48 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Float Window IDs
|
|
|
|
IDM_LOG_WINDOW_PARENT,
|
|
|
|
IDM_LOG_CONFIG_WINDOW_PARENT,
|
|
|
|
IDM_REGISTER_WINDOW_PARENT,
|
2016-09-11 16:51:50 +00:00
|
|
|
IDM_WATCH_WINDOW_PARENT,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_BREAKPOINT_WINDOW_PARENT,
|
|
|
|
IDM_MEMORY_WINDOW_PARENT,
|
|
|
|
IDM_JIT_WINDOW_PARENT,
|
|
|
|
IDM_SOUND_WINDOW_PARENT,
|
|
|
|
IDM_VIDEO_WINDOW_PARENT,
|
|
|
|
IDM_CODE_WINDOW_PARENT,
|
2010-07-22 02:05:28 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Float popup menu IDs
|
|
|
|
IDM_FLOAT_LOG_WINDOW,
|
|
|
|
IDM_FLOAT_LOG_CONFIG_WINDOW,
|
|
|
|
IDM_FLOAT_REGISTER_WINDOW,
|
2016-09-11 16:51:50 +00:00
|
|
|
IDM_FLOAT_WATCH_WINDOW,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_FLOAT_BREAKPOINT_WINDOW,
|
|
|
|
IDM_FLOAT_MEMORY_WINDOW,
|
|
|
|
IDM_FLOAT_JIT_WINDOW,
|
|
|
|
IDM_FLOAT_SOUND_WINDOW,
|
|
|
|
IDM_FLOAT_VIDEO_WINDOW,
|
|
|
|
IDM_FLOAT_CODE_WINDOW,
|
2010-07-26 03:46:14 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Menu Entries
|
|
|
|
// --------------------
|
|
|
|
// CPU Mode
|
|
|
|
IDM_INTERPRETER,
|
|
|
|
IDM_JIT_NO_BLOCK_CACHE,
|
|
|
|
IDM_JIT_NO_BLOCK_LINKING, // JIT
|
|
|
|
IDM_JIT_OFF,
|
|
|
|
IDM_JIT_LS_OFF,
|
|
|
|
IDM_JIT_LSLXZ_OFF,
|
|
|
|
IDM_JIT_LSLWZ_OFF,
|
|
|
|
IDM_JIT_LSLBZX_OFF,
|
|
|
|
IDM_JIT_LSP_OFF,
|
|
|
|
IDM_JIT_LSF_OFF,
|
|
|
|
IDM_JIT_I_OFF,
|
|
|
|
IDM_JIT_FP_OFF,
|
|
|
|
IDM_JIT_P_OFF,
|
|
|
|
IDM_JIT_SR_OFF,
|
2017-07-28 04:37:21 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_FONT_PICKER,
|
2017-07-28 04:37:21 +00:00
|
|
|
IDM_AUTOMATIC_START,
|
|
|
|
IDM_BOOT_TO_PAUSE,
|
2010-07-22 02:05:28 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Symbols
|
|
|
|
IDM_CLEAR_SYMBOLS,
|
|
|
|
IDM_SCAN_FUNCTIONS,
|
2017-03-25 00:52:17 +00:00
|
|
|
IDM_SCAN_SIGNATURES,
|
2017-03-28 00:58:22 +00:00
|
|
|
IDM_SCAN_RSO,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_LOAD_MAP_FILE,
|
|
|
|
IDM_LOAD_MAP_FILE_AS,
|
|
|
|
IDM_LOAD_BAD_MAP_FILE,
|
|
|
|
IDM_SAVEMAPFILE,
|
|
|
|
IDM_SAVE_MAP_FILE_WITH_CODES,
|
|
|
|
IDM_SAVE_MAP_FILE_AS,
|
|
|
|
IDM_CREATE_SIGNATURE_FILE,
|
|
|
|
IDM_APPEND_SIGNATURE_FILE,
|
|
|
|
IDM_COMBINE_SIGNATURE_FILES,
|
|
|
|
IDM_RENAME_SYMBOLS,
|
|
|
|
IDM_USE_SIGNATURE_FILE,
|
|
|
|
IDM_PATCH_HLE_FUNCTIONS,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// JIT
|
|
|
|
IDM_CLEAR_CODE_CACHE,
|
|
|
|
IDM_LOG_INSTRUCTIONS,
|
|
|
|
IDM_SEARCH_INSTRUCTION,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Profiler
|
|
|
|
IDM_PROFILE_BLOCKS,
|
|
|
|
IDM_WRITE_PROFILE,
|
|
|
|
// --------------------------------------------------------------
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Toolbar
|
|
|
|
// --------------------
|
|
|
|
ID_TOOLBAR_DEBUG,
|
|
|
|
IDM_STEP,
|
|
|
|
IDM_STEPOVER,
|
|
|
|
IDM_STEPOUT,
|
|
|
|
IDM_TOGGLE_BREAKPOINT,
|
|
|
|
IDM_SKIP,
|
|
|
|
IDM_SETPC,
|
|
|
|
IDM_GOTOPC,
|
|
|
|
IDM_ADDRBOX,
|
2009-08-27 07:33:07 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
ID_TOOLBAR_AUI,
|
|
|
|
IDM_SAVE_PERSPECTIVE,
|
|
|
|
IDM_ADD_PERSPECTIVE,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_TOP,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_BOTTOM,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_LEFT,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_RIGHT,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_CENTER,
|
|
|
|
IDM_EDIT_PERSPECTIVES,
|
|
|
|
IDM_TAB_SPLIT,
|
|
|
|
IDM_NO_DOCKING,
|
|
|
|
IDM_PERSPECTIVES_0,
|
|
|
|
IDM_PERSPECTIVES_100 = IDM_PERSPECTIVES_0 + 100,
|
|
|
|
// --------------------------------------------------------------
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_TOGGLE_DUAL_CORE, // Other
|
|
|
|
IDM_TOGGLE_TOOLBAR,
|
|
|
|
IDM_TOGGLE_STATUSBAR,
|
|
|
|
IDM_NOTIFY_MAP_LOADED,
|
|
|
|
IDM_OPEN_CONTAINING_FOLDER,
|
|
|
|
IDM_OPEN_SAVE_FOLDER,
|
|
|
|
IDM_EXPORT_SAVE,
|
|
|
|
IDM_IMPORT_SAVE,
|
|
|
|
IDM_EXPORT_ALL_SAVE,
|
|
|
|
IDM_SET_DEFAULT_ISO,
|
|
|
|
IDM_DELETE_ISO,
|
|
|
|
IDM_COMPRESS_ISO,
|
2016-10-03 12:35:27 +00:00
|
|
|
IDM_START_NETPLAY,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_MULTI_COMPRESS_ISO,
|
|
|
|
IDM_MULTI_DECOMPRESS_ISO,
|
|
|
|
IDM_UPDATE_DISASM_DIALOG,
|
|
|
|
IDM_UPDATE_GUI,
|
|
|
|
IDM_UPDATE_STATUS_BAR,
|
|
|
|
IDM_UPDATE_TITLE,
|
|
|
|
IDM_UPDATE_BREAKPOINTS,
|
|
|
|
IDM_UPDATE_JIT_PANE,
|
2018-04-12 05:56:15 +00:00
|
|
|
IDM_RELOAD_THEME_BITMAPS,
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_PANIC,
|
|
|
|
IDM_KEYSTATE,
|
|
|
|
IDM_WINDOW_SIZE_REQUEST,
|
|
|
|
IDM_STOPPED,
|
|
|
|
IDM_HOST_MESSAGE,
|
2017-06-25 15:35:24 +00:00
|
|
|
IDM_UPDATE_PROGRESS_DIALOG,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_MPANEL,
|
|
|
|
ID_STATUSBAR,
|
2009-01-04 21:53:41 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
IDM_FREELOOK_DECREASE_SPEED,
|
|
|
|
IDM_FREELOOK_INCREASE_SPEED,
|
|
|
|
IDM_FREELOOK_RESET_SPEED,
|
|
|
|
IDM_FREELOOK_UP,
|
|
|
|
IDM_FREELOOK_DOWN,
|
|
|
|
IDM_FREELOOK_LEFT,
|
|
|
|
IDM_FREELOOK_RIGHT,
|
|
|
|
IDM_FREELOOK_ZOOM_IN,
|
|
|
|
IDM_FREELOOK_ZOOM_OUT,
|
|
|
|
IDM_FREELOOK_RESET,
|
2014-11-17 02:58:37 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
ID_TOOLBAR = 500,
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|
|
|
|
|
2010-08-03 03:20:44 +00:00
|
|
|
// custom message macro
|
2016-06-24 08:43:46 +00:00
|
|
|
#define EVT_HOST_COMMAND(id, fn) EVT_COMMAND(id, wxEVT_HOST_COMMAND, fn)
|
2009-01-03 01:38:44 +00:00
|
|
|
|
2016-10-03 07:29:50 +00:00
|
|
|
// FIXME: This should be changed to wxThreadEvent
|
2014-11-06 03:19:52 +00:00
|
|
|
wxDECLARE_EVENT(wxEVT_HOST_COMMAND, wxCommandEvent);
|
2016-04-22 10:42:16 +00:00
|
|
|
|
|
|
|
// Sent to wxTheApp
|
|
|
|
// GetString() == Game's Unique ID
|
|
|
|
// GetInt() == Game's Revision
|
|
|
|
wxDECLARE_EVENT(DOLPHIN_EVT_LOCAL_INI_CHANGED, wxCommandEvent);
|