mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
CodeWindow: Made boot to pause optional, readded the tooltips in the Release build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1784 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
6359f53343
commit
6c57f63280
@ -35,7 +35,7 @@ struct SCoreStartupParameter
|
||||
void* hMainWindow;
|
||||
|
||||
// flags
|
||||
bool bEnableDebugging; bool bAutomaticStart;
|
||||
bool bEnableDebugging; bool bAutomaticStart; bool bBootToPause;
|
||||
bool bUseJIT;
|
||||
|
||||
bool bJITUnlimitedCache, bJITOff; // JIT
|
||||
|
@ -27,9 +27,21 @@
|
||||
// * A flush simply does a conditional write to the appropriate CRx.
|
||||
// * If flag available, branch code can become absolutely trivial.
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Settings
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
#define JIT_OFF_OPTIONS // Compile with JIT off options
|
||||
////////////////////////////////////
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Include
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
#ifdef JITTEST
|
||||
#include "../Jit64IL/Jit.h"
|
||||
#include "../Jit64IL/Jit.h"
|
||||
#else
|
||||
|
||||
#ifndef _JIT_H
|
||||
#define _JIT_H
|
||||
|
||||
@ -40,29 +52,40 @@
|
||||
#include "x64Analyzer.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
///////////////////////////////////
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#else
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Declarations and definitions
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
|
||||
// A bit of a hack to get things building under linux. We manually fill in this structure as needed
|
||||
// from the real context.
|
||||
struct CONTEXT
|
||||
{
|
||||
#ifdef _M_X64
|
||||
u64 Rip;
|
||||
u64 Rax;
|
||||
#else
|
||||
u32 Eip;
|
||||
u32 Eax;
|
||||
#endif
|
||||
};
|
||||
void Jit(u32 em_address);
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
// A bit of a hack to get things building under linux. We manually fill in this structure as needed
|
||||
// from the real context.
|
||||
struct CONTEXT
|
||||
{
|
||||
#ifdef _M_X64
|
||||
u64 Rip;
|
||||
u64 Rax;
|
||||
#else
|
||||
u32 Eip;
|
||||
u32 Eax;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// Use these to control the instruction selection
|
||||
// #define INSTRUCTION_START Default(inst); return;
|
||||
// #define INSTRUCTION_START PPCTables::CountInstruction(inst);
|
||||
#define INSTRUCTION_START
|
||||
///////////////////////////////////
|
||||
|
||||
|
||||
class TrampolineCache : public Gen::XCodeBlock
|
||||
{
|
||||
@ -292,7 +315,5 @@ public:
|
||||
|
||||
extern Jit64 jit;
|
||||
|
||||
void Jit(u32 em_address);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif // _JIT_H
|
||||
#endif // JITTEST
|
||||
|
@ -545,6 +545,10 @@
|
||||
RelativePath=".\src\CodeWindow.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Src\CodeWindowSJP.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\Debugger.cpp"
|
||||
>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -59,7 +59,8 @@ class CCodeWindow
|
||||
|
||||
|
||||
bool UseInterpreter();
|
||||
bool AutomaticStart();
|
||||
bool BootToPause();
|
||||
bool AutomaticStart();
|
||||
//bool UseDualCore(); // not used
|
||||
void JumpToAddress(u32 _Address);
|
||||
|
||||
@ -72,7 +73,7 @@ class CCodeWindow
|
||||
// CPU Mode
|
||||
IDM_INTERPRETER = 2000, // These cannot interfere with enums in Globals.h!
|
||||
//IDM_DUALCORE, // not used
|
||||
IDM_AUTOMATICSTART,
|
||||
IDM_AUTOMATICSTART, IDM_BOOTTOPAUSE,
|
||||
IDM_JITUNLIMITED, IDM_JITOFF, // jit
|
||||
IDM_JITLSOFF, IDM_JITLSLXZOFF, IDM_JITLSLWZOFF, IDM_JITLSLBZXOFF,
|
||||
IDM_JITLSPOFF, IDM_JITLSFOFF,
|
||||
@ -142,7 +143,7 @@ class CCodeWindow
|
||||
};
|
||||
|
||||
// Settings
|
||||
bool bAutomaticStart;
|
||||
bool bAutomaticStart; bool bBootToPause;
|
||||
bool bLogWindow;
|
||||
bool bRegisterWindow;
|
||||
bool bBreakpointWindow;
|
||||
@ -208,15 +209,18 @@ class CCodeWindow
|
||||
void OnJITOff(wxCommandEvent& event);
|
||||
|
||||
void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter);
|
||||
void CreateSymbolsMenu();
|
||||
|
||||
void UpdateButtonStates();
|
||||
void UpdateLists();
|
||||
|
||||
void RecreateToolbar();
|
||||
void PopulateToolbar(wxToolBar* toolBar);
|
||||
void InitBitmaps();
|
||||
void CreateGUIControls(const SCoreStartupParameter& _LocalCoreStartupParameter);
|
||||
void OnStatusBar(wxMenuEvent& event); void OnStatusBar_(wxUpdateUIEvent& event);
|
||||
void DoTip(wxString text);
|
||||
void OnKeyDown(wxKeyEvent& event);
|
||||
|
||||
void InitBitmaps();
|
||||
void CreateGUIControls(const SCoreStartupParameter& _LocalCoreStartupParameter);
|
||||
};
|
||||
|
||||
#endif /*CODEWINDOW_*/
|
||||
|
@ -11,6 +11,7 @@ files = ["LogWindow.cpp",
|
||||
"CodeView.cpp",
|
||||
"BreakpointWindow.cpp",
|
||||
"CodeWindow.cpp",
|
||||
"CodeWindowSJP.cpp",
|
||||
"CodeView.cpp",
|
||||
"Debugger.cpp",
|
||||
"MemoryCheckDlg.cpp",
|
||||
|
@ -84,6 +84,7 @@ bool BootCore(const std::string& _rFilename)
|
||||
{
|
||||
// StartUp.bUseDualCore = code_frame->UseDualCore();
|
||||
StartUp.bUseJIT = !g_pCodeWindow->UseInterpreter();
|
||||
StartUp.bBootToPause = g_pCodeWindow->BootToPause();
|
||||
StartUp.bAutomaticStart = g_pCodeWindow->AutomaticStart();
|
||||
}
|
||||
else
|
||||
@ -202,7 +203,7 @@ bool BootCore(const std::string& _rFilename)
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
// Boot to pause or not
|
||||
Core::SetState((g_pCodeWindow && !StartUp.bAutomaticStart)
|
||||
Core::SetState((g_pCodeWindow && StartUp.bBootToPause)
|
||||
? Core::CORE_PAUSE : Core::CORE_RUN);
|
||||
#else
|
||||
Core::SetState(Core::CORE_RUN);
|
||||
|
@ -134,9 +134,9 @@ void CFrame::CreateMenu()
|
||||
wxMenu* pOptionsMenu = new wxMenu;
|
||||
m_pPluginOptions = pOptionsMenu->Append(IDM_CONFIG_MAIN, _T("Co&nfigure..."));
|
||||
pOptionsMenu->AppendSeparator();
|
||||
pOptionsMenu->Append(IDM_CONFIG_GFX_PLUGIN, _T("&GFX settings"));
|
||||
pOptionsMenu->Append(IDM_CONFIG_GFX_PLUGIN, _T("&Graphics settings"));
|
||||
pOptionsMenu->Append(IDM_CONFIG_DSP_PLUGIN, _T("&DSP settings"));
|
||||
pOptionsMenu->Append(IDM_CONFIG_PAD_PLUGIN, _T("&PAD settings"));
|
||||
pOptionsMenu->Append(IDM_CONFIG_PAD_PLUGIN, _T("&Pad settings"));
|
||||
pOptionsMenu->Append(IDM_CONFIG_WIIMOTE_PLUGIN, _T("&Wiimote settings"));
|
||||
#ifdef _WIN32
|
||||
pOptionsMenu->AppendSeparator();
|
||||
@ -193,7 +193,7 @@ void CFrame::PopulateToolbar(wxToolBar* toolBar)
|
||||
#endif
|
||||
toolBar->AddSeparator();
|
||||
toolBar->AddTool(IDM_CONFIG_MAIN, _T("Config"), m_Bitmaps[Toolbar_PluginOptions], _T("Configure..."));
|
||||
toolBar->AddTool(IDM_CONFIG_GFX_PLUGIN, _T("Gfx"), m_Bitmaps[Toolbar_PluginGFX], _T("Gfx settings"));
|
||||
toolBar->AddTool(IDM_CONFIG_GFX_PLUGIN, _T("Gfx"), m_Bitmaps[Toolbar_PluginGFX], _T("Graphics settings"));
|
||||
toolBar->AddTool(IDM_CONFIG_DSP_PLUGIN, _T("DSP"), m_Bitmaps[Toolbar_PluginDSP], _T("DSP settings"));
|
||||
toolBar->AddTool(IDM_CONFIG_PAD_PLUGIN, _T("Pad"), m_Bitmaps[Toolbar_PluginPAD], _T("Pad settings"));
|
||||
toolBar->AddTool(IDM_CONFIG_WIIMOTE_PLUGIN, _T("Wiimote"), m_Bitmaps[Toolbar_Wiimote], _T("Wiimote settings"));
|
||||
|
@ -16,7 +16,6 @@
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// File description
|
||||
/* ¯¯¯¯¯¯¯¯¯
|
||||
@ -26,23 +25,22 @@
|
||||
////////////////////////*/
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Settings
|
||||
// ¯¯¯¯¯¯¯¯¯
|
||||
// Build with music modification. Define MUSICMOD here.
|
||||
#include "../../../Branches/MusicMod/Main/Src/Setup.h"
|
||||
//////////////////////////
|
||||
|
||||
|
||||
#ifndef _GLOBALS_H
|
||||
#define _GLOBALS_H
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Build with music modification
|
||||
// ¯¯¯¯¯¯¯¯¯
|
||||
#include "../../../Branches/MusicMod/Main/Src/Setup.h" // Define MUSICMOD here
|
||||
//////////////////////////
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
IDM_LOADSTATE = 200, // File
|
||||
IDM_LOADSTATE = 200, // File menu
|
||||
IDM_SAVESTATE,
|
||||
IDM_SAVESLOT1,
|
||||
IDM_SAVESLOT2,
|
||||
@ -68,12 +66,12 @@ enum
|
||||
IDM_STOP,
|
||||
IDM_BROWSE,
|
||||
|
||||
IDM_MEMCARD, // Misc
|
||||
IDM_MEMCARD, // Misc menu
|
||||
IDM_CHEATS,
|
||||
IDM_CHANGEDISC,
|
||||
IDM_PROPERTIES,
|
||||
|
||||
IDM_HELPABOUT,
|
||||
IDM_HELPABOUT, // Help menu
|
||||
IDM_HELPWEBSITE,
|
||||
IDM_HELPGOOGLECODE,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user