mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Compile fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3569 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
6c52ab1c39
commit
900287be50
@ -26,7 +26,7 @@
|
|||||||
#ifndef _DSPCORE_H
|
#ifndef _DSPCORE_H
|
||||||
#define _DSPCORE_H
|
#define _DSPCORE_H
|
||||||
|
|
||||||
#include "Breakpoints.h"
|
#include "BreakPoints.h"
|
||||||
|
|
||||||
#define DSP_IRAM_BYTE_SIZE 0x2000
|
#define DSP_IRAM_BYTE_SIZE 0x2000
|
||||||
#define DSP_IRAM_SIZE 0x1000
|
#define DSP_IRAM_SIZE 0x1000
|
||||||
|
@ -6,7 +6,6 @@ files = [
|
|||||||
"assemble.cpp",
|
"assemble.cpp",
|
||||||
"disassemble.cpp",
|
"disassemble.cpp",
|
||||||
"DSPAccelerator.cpp",
|
"DSPAccelerator.cpp",
|
||||||
"DSPIntUtil.cpp",
|
|
||||||
"DSPIntCCUtil.cpp",
|
"DSPIntCCUtil.cpp",
|
||||||
"DSPIntExtOps.cpp",
|
"DSPIntExtOps.cpp",
|
||||||
"DSPHWInterface.cpp",
|
"DSPHWInterface.cpp",
|
||||||
|
@ -16,10 +16,7 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
/*
|
||||||
// Documentation
|
|
||||||
/* ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
|
||||||
|
|
||||||
1.1 Windows
|
1.1 Windows
|
||||||
|
|
||||||
CFrame is the main parent window. Inside CFrame there is m_Panel which is the
|
CFrame is the main parent window. Inside CFrame there is m_Panel which is the
|
||||||
@ -28,8 +25,7 @@ the rendering window is created by giving CreateWindow() m_Panel->GetHandle()
|
|||||||
as parent window and creating a new child window to m_Panel. The new child
|
as parent window and creating a new child window to m_Panel. The new child
|
||||||
window handle that is returned by CreateWindow() can be accessed from
|
window handle that is returned by CreateWindow() can be accessed from
|
||||||
Core::GetWindowHandle().
|
Core::GetWindowHandle().
|
||||||
|
*/
|
||||||
///////////////////////////////////////////////*/
|
|
||||||
|
|
||||||
|
|
||||||
// FIXME: why doesn't it work on windows???
|
// FIXME: why doesn't it work on windows???
|
||||||
@ -100,9 +96,7 @@ wxCheatsWindow* CheatsWindow;
|
|||||||
wxInfoWindow* InfoWindow;
|
wxInfoWindow* InfoWindow;
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Create menu items
|
// Create menu items
|
||||||
// ----------------------
|
|
||||||
void CFrame::CreateMenu()
|
void CFrame::CreateMenu()
|
||||||
{
|
{
|
||||||
if (GetMenuBar())
|
if (GetMenuBar())
|
||||||
@ -231,12 +225,9 @@ void CFrame::CreateMenu()
|
|||||||
// Associate the menu bar with the frame
|
// Associate the menu bar with the frame
|
||||||
SetMenuBar(menuBar);
|
SetMenuBar(menuBar);
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Create toolbar items
|
// Create toolbar items
|
||||||
// ----------------------
|
|
||||||
void CFrame::PopulateToolbar(wxToolBar* toolBar)
|
void CFrame::PopulateToolbar(wxToolBar* toolBar)
|
||||||
{
|
{
|
||||||
int w = m_Bitmaps[Toolbar_FileOpen].GetWidth(),
|
int w = m_Bitmaps[Toolbar_FileOpen].GetWidth(),
|
||||||
@ -263,20 +254,16 @@ void CFrame::PopulateToolbar(wxToolBar* toolBar)
|
|||||||
toolBar->AddTool(IDM_HELPABOUT, _T("About"), m_Bitmaps[Toolbar_Help], _T("About Dolphin"));
|
toolBar->AddTool(IDM_HELPABOUT, _T("About"), m_Bitmaps[Toolbar_Help], _T("About Dolphin"));
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
|
||||||
// Music mod
|
// Music mod
|
||||||
// ¯¯¯¯¯¯¯¯¯¯
|
|
||||||
#ifdef MUSICMOD
|
#ifdef MUSICMOD
|
||||||
MM_PopulateGUI();
|
MM_PopulateGUI();
|
||||||
#endif
|
#endif
|
||||||
///////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// after adding the buttons to the toolbar, must call Realize() to reflect
|
// after adding the buttons to the toolbar, must call Realize() to reflect
|
||||||
// the changes
|
// the changes
|
||||||
toolBar->Realize();
|
toolBar->Realize();
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// Delete and recreate the toolbar
|
// Delete and recreate the toolbar
|
||||||
@ -393,13 +380,10 @@ void CFrame::InitBitmaps()
|
|||||||
default: PanicAlert("Theme selection went wrong");
|
default: PanicAlert("Theme selection went wrong");
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
|
||||||
// Music modification
|
// Music modification
|
||||||
// -------------
|
|
||||||
#ifdef MUSICMOD
|
#ifdef MUSICMOD
|
||||||
MM_InitBitmaps(Theme);
|
MM_InitBitmaps(Theme);
|
||||||
#endif
|
#endif
|
||||||
//////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// Update in case the bitmap has been updated
|
// Update in case the bitmap has been updated
|
||||||
@ -408,9 +392,7 @@ void CFrame::InitBitmaps()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Start the game or change the disc
|
// Start the game or change the disc
|
||||||
// -------------
|
|
||||||
void CFrame::BootGame()
|
void CFrame::BootGame()
|
||||||
{
|
{
|
||||||
// Music modification
|
// Music modification
|
||||||
@ -517,12 +499,9 @@ void CFrame::OnBootDrive(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
BootManager::BootCore(drives[event.GetId()-IDM_DRIVE1]);
|
BootManager::BootCore(drives[event.GetId()-IDM_DRIVE1]);
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Refresh the file list and browse for a favorites directory
|
// Refresh the file list and browse for a favorites directory
|
||||||
// --------------------
|
|
||||||
void CFrame::OnRefresh(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnRefresh(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
if (m_GameListCtrl)
|
if (m_GameListCtrl)
|
||||||
@ -536,12 +515,9 @@ void CFrame::OnBrowse(wxCommandEvent& WXUNUSED (event))
|
|||||||
{
|
{
|
||||||
m_GameListCtrl->BrowseForDirectory();
|
m_GameListCtrl->BrowseForDirectory();
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Create screenshot
|
// Create screenshot
|
||||||
// --------------------
|
|
||||||
static inline void GenerateScreenshotName(std::string& name)
|
static inline void GenerateScreenshotName(std::string& name)
|
||||||
{
|
{
|
||||||
int index = 1;
|
int index = 1;
|
||||||
@ -566,12 +542,9 @@ void CFrame::OnScreenshot(wxCommandEvent& WXUNUSED (event))
|
|||||||
if(!bPaused)
|
if(!bPaused)
|
||||||
Core::SetState(Core::CORE_RUN);
|
Core::SetState(Core::CORE_RUN);
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Stop the emulation
|
// Stop the emulation
|
||||||
// --------------------
|
|
||||||
void CFrame::DoStop()
|
void CFrame::DoStop()
|
||||||
{
|
{
|
||||||
// Music modification
|
// Music modification
|
||||||
@ -609,7 +582,6 @@ void CFrame::OnStop(wxCommandEvent& WXUNUSED (event))
|
|||||||
{
|
{
|
||||||
DoStop();
|
DoStop();
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
void CFrame::OnConfigMain(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnConfigMain(wxCommandEvent& WXUNUSED (event))
|
||||||
@ -741,7 +713,7 @@ void CFrame::OnLoadStateFromFile(wxCommandEvent& WXUNUSED (event))
|
|||||||
this);
|
this);
|
||||||
|
|
||||||
if(path)
|
if(path)
|
||||||
State_LoadAs(path.ToAscii());
|
State_LoadAs((const char *)path.ToAscii());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFrame::OnSaveStateToFile(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnSaveStateToFile(wxCommandEvent& WXUNUSED (event))
|
||||||
@ -759,7 +731,7 @@ void CFrame::OnSaveStateToFile(wxCommandEvent& WXUNUSED (event))
|
|||||||
this);
|
this);
|
||||||
|
|
||||||
if(path)
|
if(path)
|
||||||
State_SaveAs(path.ToAscii());
|
State_SaveAs((const char *)path.ToAscii());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFrame::OnLoadLastState(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnLoadLastState(wxCommandEvent& WXUNUSED (event))
|
||||||
@ -856,13 +828,10 @@ void CFrame::ToggleConsole(bool check)
|
|||||||
else
|
else
|
||||||
console->Close();
|
console->Close();
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
|
||||||
// Music mod
|
// Music mod
|
||||||
// ¯¯¯¯¯¯¯¯¯¯
|
|
||||||
#ifdef MUSICMOD
|
#ifdef MUSICMOD
|
||||||
MM_OnLog(SConfig::GetInstance().m_InterfaceConsole);
|
MM_OnLog(SConfig::GetInstance().m_InterfaceConsole);
|
||||||
#endif
|
#endif
|
||||||
///////////////////////
|
|
||||||
|
|
||||||
// Make sure the check is updated (if wxw isn't calling this func)
|
// Make sure the check is updated (if wxw isn't calling this func)
|
||||||
GetMenuBar()->FindItem(IDM_TOGGLE_CONSOLE)->Check(check);
|
GetMenuBar()->FindItem(IDM_TOGGLE_CONSOLE)->Check(check);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user