fix annoying debug break in win32. some cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2639 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
79e14b4077
commit
19921c057a
|
@ -92,8 +92,8 @@ void CPUInfo::Detect()
|
|||
|
||||
#ifdef _WIN32
|
||||
#ifdef _M_IX86
|
||||
bool f64 = false;
|
||||
OS64bit = IsWow64Process(GetCurrentProcess(), (PBOOL)(&f64)) && f64;
|
||||
BOOL f64 = false;
|
||||
OS64bit = IsWow64Process(GetCurrentProcess(), &f64);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003-2008 Dolphin Project.
|
||||
// Copyright (C) 2003-2009 Dolphin Project.
|
||||
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,20 +14,14 @@
|
|||
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "Common.h"
|
||||
#include "../Core.h"
|
||||
|
||||
#include "GBAPipe.h"
|
||||
#include "../PowerPC/PowerPC.h"
|
||||
#include "CommandProcessor.h"
|
||||
|
||||
|
||||
#include "../Host.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
namespace GBAPipe
|
||||
|
@ -36,16 +30,10 @@ namespace GBAPipe
|
|||
HANDLE m_hPipe;
|
||||
bool m_bIsServer;
|
||||
bool m_bEnabled;
|
||||
u32 m_BlockStart;
|
||||
|
||||
#define PIPENAME "\\\\.\\pipe\\gbapipe"
|
||||
|
||||
|
||||
void SetBlockStart(u32 addr)
|
||||
{
|
||||
m_BlockStart = addr;
|
||||
}
|
||||
|
||||
void StartServer()
|
||||
{
|
||||
if (m_bEnabled)
|
||||
|
@ -158,8 +146,8 @@ namespace GBAPipe
|
|||
return m_bIsServer;
|
||||
}
|
||||
|
||||
} // namespace GBAPipe
|
||||
|
||||
}
|
||||
#else
|
||||
|
||||
namespace GBAPipe
|
||||
|
@ -171,7 +159,6 @@ namespace GBAPipe
|
|||
void Write(u8 data) { }
|
||||
bool IsEnabled() { return false; }
|
||||
bool IsServer() { return false; }
|
||||
}
|
||||
// #error Provide a GBAPipe implementation or dummy it out, please
|
||||
} // namespace GBAPipe
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003-2008 Dolphin Project.
|
||||
// Copyright (C) 2003-2009 Dolphin Project.
|
||||
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -26,6 +26,7 @@
|
|||
|
||||
namespace GBAPipe
|
||||
{
|
||||
|
||||
// start the server
|
||||
void StartServer();
|
||||
|
||||
|
@ -45,7 +46,6 @@ namespace GBAPipe
|
|||
// IsServer
|
||||
bool IsServer();
|
||||
|
||||
void SetBlockStart(u32 addr);
|
||||
}
|
||||
} // namespace GBAPipe
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue