Files
BlitzNext/debugger/debuggerapp.cpp
T

50 lines
911 B
C++
Raw Normal View History

2014-01-31 08:23:00 +13:00
2019-01-18 15:55:40 +01:00
#include "stdafx.hpp"
#include "debugger.hpp"
#include "debuggerapp.hpp"
#include "resource.hpp"
#include "prefs.hpp"
2014-01-31 08:23:00 +13:00
DebuggerApp debuggerApp;
DebuggerApp::~DebuggerApp(){
}
BOOL DebuggerApp::InitInstance(){
AfxInitRichEdit();
main_frame=new MainFrame();
m_pMainWnd=main_frame;
RECT rect;
SystemParametersInfo( SPI_GETWORKAREA,0,&rect,0 );
int x=rect.left;
int w=rect.right-x;
int h=240;
int y=rect.bottom-h;
main_frame->Create( 0,"Blitz Debugger",
WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN,
CRect( x,y,x+w,y+h ) );
main_frame->ShowWindow( SW_SHOW );
main_frame->UpdateWindow();
return TRUE;
}
int DebuggerApp::ExitInstance(){
main_frame->DestroyWindow();
return 0;
}
MainFrame *DebuggerApp::mainFrame(){
return debuggerApp.main_frame;
}
Debugger * _cdecl debuggerGetDebugger( void *mod,void *env ){
debuggerApp.mainFrame()->setRuntime( mod,env );
return debuggerApp.mainFrame();
}