fix non gui build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3921 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
69c0613160
commit
1e9bb4ed9a
|
@ -184,7 +184,9 @@ void PPCDebugInterface::setPC(unsigned int address)
|
||||||
|
|
||||||
void PPCDebugInterface::showJitResults(unsigned int address)
|
void PPCDebugInterface::showJitResults(unsigned int address)
|
||||||
{
|
{
|
||||||
|
#if !defined(HAVE_WX) && !HAVE_WX
|
||||||
Host_ShowJitResults(address);
|
Host_ShowJitResults(address);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPCDebugInterface::runToBreakpoint()
|
void PPCDebugInterface::runToBreakpoint()
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
|
|
||||||
Import('env')
|
Import('env')
|
||||||
files = [] #So it's declared outside the if
|
|
||||||
if env['HAVE_WX']:
|
if not env['HAVE_WX']:
|
||||||
files += [
|
Return()
|
||||||
|
files += [
|
||||||
'CodeView.cpp',
|
'CodeView.cpp',
|
||||||
'DebuggerUIUtil.cpp',
|
'DebuggerUIUtil.cpp',
|
||||||
'MemoryView.cpp',
|
'MemoryView.cpp',
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
#include "BootManager.h"
|
#include "BootManager.h"
|
||||||
void* g_pCodeWindow = NULL;
|
void* g_pCodeWindow = NULL;
|
||||||
void* main_frame = NULL;
|
void* main_frame = NULL;
|
||||||
LogManager *logManager = NULL;
|
|
||||||
|
|
||||||
// OK, this thread boundary is DANGEROUS on linux
|
// OK, this thread boundary is DANGEROUS on linux
|
||||||
// wxPostEvent / wxAddPendingEvent is the solution.
|
// wxPostEvent / wxAddPendingEvent is the solution.
|
||||||
|
@ -214,7 +213,6 @@ int main(int argc, char* argv[])
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
std::string bootFile(args_info.inputs[0]);
|
std::string bootFile(args_info.inputs[0]);
|
||||||
logManager = (LogManager *)CPluginManager::GetInstance().GetGlobals()->logManager;
|
|
||||||
|
|
||||||
updateMainFrameEvent.Init();
|
updateMainFrameEvent.Init();
|
||||||
cpu_info.Detect();
|
cpu_info.Detect();
|
||||||
|
|
|
@ -10,10 +10,16 @@ files = [
|
||||||
'cmdline.c',
|
'cmdline.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
libs = [
|
if wxenv['HAVE_WX']:
|
||||||
|
libs = [
|
||||||
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
|
||||||
'common', 'z', 'debugger_ui_util'
|
'common', 'z', 'debugger_ui_util'
|
||||||
]
|
]
|
||||||
|
else:
|
||||||
|
libs = [
|
||||||
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
|
||||||
|
'common', 'z'
|
||||||
|
]
|
||||||
|
|
||||||
if wxenv['HAVE_WX']:
|
if wxenv['HAVE_WX']:
|
||||||
files += [
|
files += [
|
||||||
|
|
|
@ -31,9 +31,15 @@ if env['HAVE_WX']:
|
||||||
]
|
]
|
||||||
|
|
||||||
lleenv = env.Clone()
|
lleenv = env.Clone()
|
||||||
lleenv.Append(
|
if env['HAVE_WX']:
|
||||||
|
lleenv.Append(
|
||||||
CXXFLAGS = [ '-fPIC' ],
|
CXXFLAGS = [ '-fPIC' ],
|
||||||
LIBS = [ 'dspcore', 'audiocommon', 'common', 'debugger_ui_util' ],
|
LIBS = [ 'dspcore', 'audiocommon', 'common', 'debugger_ui_util' ],
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
lleenv.Append(
|
||||||
|
CXXFLAGS = [ '-fPIC' ],
|
||||||
|
LIBS = [ 'dspcore', 'audiocommon', 'common' ],
|
||||||
|
)
|
||||||
|
|
||||||
lleenv.SharedLibrary(env['plugin_dir']+name, files)
|
lleenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -318,9 +318,9 @@ void Initialize(void *init)
|
||||||
g_Config.Load();
|
g_Config.Load();
|
||||||
|
|
||||||
g_Config.GameIniLoad();
|
g_Config.GameIniLoad();
|
||||||
g_Config.UpdateProjectionHack();
|
|
||||||
|
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX
|
||||||
|
g_Config.UpdateProjectionHack();
|
||||||
//Enable support for PNG screenshots.
|
//Enable support for PNG screenshots.
|
||||||
wxImage::AddHandler( new wxPNGHandler );
|
wxImage::AddHandler( new wxPNGHandler );
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -261,7 +261,9 @@ void SendReportCoreAccelIr10Ext(u16 _channelID)
|
||||||
}
|
}
|
||||||
else if(g_Config.iExtensionConnected == EXT_GUITARHERO3_CONTROLLER)
|
else if(g_Config.iExtensionConnected == EXT_GUITARHERO3_CONTROLLER)
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_WX) && HAVE_WX
|
||||||
FillReportGuitarHero3Extension(_GH3_ext);
|
FillReportGuitarHero3Extension(_GH3_ext);
|
||||||
|
#endif
|
||||||
memcpy(&pReport->ext, &_GH3_ext, sizeof(_GH3_ext));
|
memcpy(&pReport->ext, &_GH3_ext, sizeof(_GH3_ext));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue