Files
BlitzNext/debugger/debuggerapp.cpp
T
Michael Fabian 'Xaymar' Dirks 2dbd84c794 debugger: CMake-ify
2019-01-18 15:55:40 +01:00

50 lines
911 B
C++

#include "stdafx.hpp"
#include "debugger.hpp"
#include "debuggerapp.hpp"
#include "resource.hpp"
#include "prefs.hpp"
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();
}