mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
compile fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1613 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -117,11 +117,11 @@ void BreakPoints::AddAutoBreakpoints()
|
|||||||
"PPCHalt",
|
"PPCHalt",
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(bps) / sizeof(const char *); i++)
|
for (u32 i = 0; i < sizeof(bps) / sizeof(const char *); i++)
|
||||||
{
|
{
|
||||||
Symbol *symbol = g_symbolDB.GetSymbolFromName(bps[i]);
|
Symbol *symbol = g_symbolDB.GetSymbolFromName(bps[i]);
|
||||||
if (symbol)
|
if (symbol)
|
||||||
AddBreakPoint(symbol->address, false);
|
BreakPoints::Add(symbol->address, false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -783,7 +783,7 @@ u8 Read_U8(const u32 _Address)
|
|||||||
u8 _var = (u8)0xAFFEAFFE;
|
u8 _var = (u8)0xAFFEAFFE;
|
||||||
ReadFromHardware2(_var, 8, _Address, _Address, FLAG_READ);
|
ReadFromHardware2(_var, 8, _Address, _Address, FLAG_READ);
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -798,7 +798,7 @@ u16 Read_U16(const u32 _Address)
|
|||||||
u16 _var = 0;
|
u16 _var = 0;
|
||||||
ReadFromHardware2(_var, 16, _Address, _Address, FLAG_READ);
|
ReadFromHardware2(_var, 16, _Address, _Address, FLAG_READ);
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -821,7 +821,7 @@ u32 Read_U32(const u32 _Address)
|
|||||||
u32 _var = 0;
|
u32 _var = 0;
|
||||||
ReadFromHardware2(_var, 32, _Address, _Address, FLAG_READ);
|
ReadFromHardware2(_var, 32, _Address, _Address, FLAG_READ);
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -837,7 +837,7 @@ u64 Read_U64(const u32 _Address)
|
|||||||
u64 _var = 0;
|
u64 _var = 0;
|
||||||
ReadFromHardware2(_var, 64, _Address, _Address, FLAG_READ);
|
ReadFromHardware2(_var, 64, _Address, _Address, FLAG_READ);
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -851,7 +851,7 @@ u64 Read_U64(const u32 _Address)
|
|||||||
void Write_U8(const u8 _Data, const u32 _Address)
|
void Write_U8(const u8 _Data, const u32 _Address)
|
||||||
{
|
{
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -865,7 +865,7 @@ void Write_U8(const u8 _Data, const u32 _Address)
|
|||||||
void Write_U16(const u16 _Data, const u32 _Address)
|
void Write_U16(const u16 _Data, const u32 _Address)
|
||||||
{
|
{
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -880,7 +880,7 @@ void Write_U16(const u16 _Data, const u32 _Address)
|
|||||||
void Write_U32(const u32 _Data, const u32 _Address)
|
void Write_U32(const u32 _Data, const u32 _Address)
|
||||||
{
|
{
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
@ -900,7 +900,7 @@ void WriteHW_U32(const u32 _Data, const u32 _Address)
|
|||||||
void Write_U64(const u64 _Data, const u32 _Address)
|
void Write_U64(const u64 _Data, const u32 _Address)
|
||||||
{
|
{
|
||||||
#ifndef NOCHECK
|
#ifndef NOCHECK
|
||||||
TMemCheck *mc = CBreakPoints::GetMemCheck(_Address);
|
TMemCheck *mc = MemChecks::GetMemCheck(_Address);
|
||||||
if (mc)
|
if (mc)
|
||||||
{
|
{
|
||||||
mc->numHits++;
|
mc->numHits++;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "../../Core.h"
|
#include "../../Core.h"
|
||||||
#include "../../PatchEngine.h"
|
#include "../../PatchEngine.h"
|
||||||
#include "../../CoreTiming.h"
|
#include "../../CoreTiming.h"
|
||||||
#include "../../Debugger/Debugger_Breakpoints.h"
|
#include "../../Debugger/Debugger_BreakPoints.h"
|
||||||
#include "../PowerPC.h"
|
#include "../PowerPC.h"
|
||||||
#include "../Profiler.h"
|
#include "../Profiler.h"
|
||||||
#include "../PPCTables.h"
|
#include "../PPCTables.h"
|
||||||
|
@ -282,7 +282,7 @@ void CMemcardManager::CreateGUIControls()
|
|||||||
m_Delete[i]->Disable();
|
m_Delete[i]->Disable();
|
||||||
if (strcasecmp(DefaultMemcard[i].c_str(), "."))
|
if (strcasecmp(DefaultMemcard[i].c_str(), "."))
|
||||||
{
|
{
|
||||||
m_MemcardPath[i]->SetPath(wxT(DefaultMemcard[i]));
|
m_MemcardPath[i]->SetPath(wxString::FromAscii(DefaultMemcard[i].c_str()));
|
||||||
i?ChangePath(ID_MEMCARDPATH_B):ChangePath(ID_MEMCARDPATH_A);
|
i?ChangePath(ID_MEMCARDPATH_B):ChangePath(ID_MEMCARDPATH_A);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -416,10 +416,10 @@ void CMemcardManager::OnMenuChange(wxCommandEvent& event)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ID_MEMCARDPATH_A:
|
case ID_MEMCARDPATH_A:
|
||||||
DefaultMemcard[SLOT_A] = m_MemcardPath[SLOT_A]->GetPath();
|
DefaultMemcard[SLOT_A] = m_MemcardPath[SLOT_A]->GetPath().mb_str();
|
||||||
break;
|
break;
|
||||||
case ID_MEMCARDPATH_B:
|
case ID_MEMCARDPATH_B:
|
||||||
DefaultMemcard[SLOT_B] = m_MemcardPath[SLOT_B]->GetPath();
|
DefaultMemcard[SLOT_B] = m_MemcardPath[SLOT_B]->GetPath().mb_str();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_MemcardList[SLOT_A]->column[event.GetId()] = !m_MemcardList[SLOT_A]->column[event.GetId()];
|
m_MemcardList[SLOT_A]->column[event.GetId()] = !m_MemcardList[SLOT_A]->column[event.GetId()];
|
||||||
@ -457,7 +457,7 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
|||||||
PanicAlert(E_UNK);
|
PanicAlert(E_UNK);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
PanicAlert(wxString::Format(wxT(E_OUTOFBLOCKS), memoryCard[slot]->GetFreeBlocks()));
|
PanicAlert(E_OUTOFBLOCKS, memoryCard[slot]->GetFreeBlocks());
|
||||||
break;
|
break;
|
||||||
case OUTOFDIRENTRIES:
|
case OUTOFDIRENTRIES:
|
||||||
PanicAlert(E_OUTOFDIRENTRIES);
|
PanicAlert(E_OUTOFDIRENTRIES);
|
||||||
|
@ -23,11 +23,11 @@ class GLWindow {
|
|||||||
int x, y;
|
int x, y;
|
||||||
unsigned int depth;*/
|
unsigned int depth;*/
|
||||||
|
|
||||||
virtual void SwapBuffers() = 0;
|
virtual void SwapBuffers() {};
|
||||||
virtual void SetWindowText(const char *text) = 0;
|
virtual void SetWindowText(const char *text) {};
|
||||||
virtual bool PeekMessages() = 0;
|
virtual bool PeekMessages() {return false;};
|
||||||
virtual void Update() = 0;
|
virtual void Update() {};;
|
||||||
virtual bool MakeCurrent() = 0;
|
virtual bool MakeCurrent() {return false;};
|
||||||
virtual void SetSize(u32 newWidth, u32 newHeight) {
|
virtual void SetSize(u32 newWidth, u32 newHeight) {
|
||||||
width = newWidth;
|
width = newWidth;
|
||||||
height = newHeight;
|
height = newHeight;
|
||||||
|
@ -32,6 +32,7 @@ public:
|
|||||||
#else
|
#else
|
||||||
class WXGLWindow : public GLWindow
|
class WXGLWindow : public GLWindow
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
WXGLWindow(int _iwidth, int _iheight) {}
|
WXGLWindow(int _iwidth, int _iheight) {}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "svnrev.h"
|
#include "svnrev.h"
|
||||||
|
#include "Config.h"
|
||||||
#include "Render.h"
|
#include "Render.h"
|
||||||
#include "nGLUtil.h"
|
#include "nGLUtil.h"
|
||||||
|
|
||||||
@ -55,11 +55,11 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize,
|
|||||||
g_VideoInitialize.pPeekMessages = &Callback_PeekMessages;
|
g_VideoInitialize.pPeekMessages = &Callback_PeekMessages;
|
||||||
g_VideoInitialize.pUpdateFPSDisplay = &UpdateFPSDisplay;
|
g_VideoInitialize.pUpdateFPSDisplay = &UpdateFPSDisplay;
|
||||||
|
|
||||||
if (strncmp(iBackend, "sdl") == 0)
|
if (strncmp(g_Config.iBackend, "sdl") == 0)
|
||||||
glWin = new SDLWindow(width, height);
|
glWin = new SDLWindow(width, height);
|
||||||
else if (strncmp(iBackend, "x11") == 0)
|
else if (strncmp(g_Config.iBackend, "x11") == 0)
|
||||||
glWin = new X11Window(width, height);
|
glWin = new X11Window(width, height);
|
||||||
else if (strncmp(iBackend, "wxgl") == 0)
|
else if (strncmp(g_Config.iBackend, "wxgl") == 0)
|
||||||
glWin = new WXGLWindow(width, height);
|
glWin = new WXGLWindow(width, height);
|
||||||
|
|
||||||
return (glWin?true:false);
|
return (glWin?true:false);
|
||||||
@ -95,6 +95,7 @@ u32 OpenGL_GetWidth() {
|
|||||||
|
|
||||||
u32 OpenGL_GetHeight() {
|
u32 OpenGL_GetHeight() {
|
||||||
return glWin->GetWidth();
|
return glWin->GetWidth();
|
||||||
|
}
|
||||||
|
|
||||||
void OpenGL_SetSize(u32 width, u32 height) {
|
void OpenGL_SetSize(u32 width, u32 height) {
|
||||||
glWin->SetSize(width, height);
|
glWin->SetSize(width, height);
|
||||||
|
Reference in New Issue
Block a user