mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 13:40:38 +00:00
- Fixed Once Breakpoints
- Send scriptlist on connect. - upped version info
This commit is contained in:
parent
6211d6e724
commit
b9833e7e6e
4 changed files with 10 additions and 6 deletions
|
@ -149,17 +149,17 @@ END
|
|||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DBG_ABOUT DIALOGEX 0, 0, 250, 80
|
||||
IDD_DBG_ABOUT DIALOGEX 0, 0, 250, 90
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP |
|
||||
WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About Script Debugger"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Script Debugger",IDC_STATIC,35,7,81,8
|
||||
LTEXT "Version 1.0",IDC_STATIC,35,17,41,8
|
||||
LTEXT "Version 1.1",IDC_STATIC,35,17,41,8
|
||||
LTEXT "Original version by Raven", IDC_STATIC, 35,28, 134, 8
|
||||
LTEXT "Dhewm3 version by Harrie van Ginneken", IDC_STATIC, 35, 38, 134, 8
|
||||
DEFPUSHBUTTON "OK",IDOK,165,60,50,14
|
||||
LTEXT "Dhewm3 version by Harrie van Ginneken \n\t\t\t\tand\n\t\t\t Daniel Gibson", IDC_STATIC, 35, 38, 134, 32
|
||||
DEFPUSHBUTTON "OK",IDOK,100,68,50,14
|
||||
ICON 5098,IDC_STATIC,7,7,20,20
|
||||
END
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
void SendCommand ( const char* cmdStr );
|
||||
|
||||
// Breakpoints
|
||||
int AddBreakpoint ( const char* filename, int lineNumber );
|
||||
int AddBreakpoint ( const char* filename, int lineNumber, bool onceOnly = false);
|
||||
bool RemoveBreakpoint ( int bpID );
|
||||
void ClearBreakpoints ( void );
|
||||
int GetBreakpointCount ( void );
|
||||
|
|
|
@ -187,11 +187,13 @@ bool rvDebuggerServer::ProcessMessages ( void )
|
|||
case DBMSG_CONNECT:
|
||||
mConnected = true;
|
||||
SendMessage ( DBMSG_CONNECTED );
|
||||
HandleInspectScripts ( nullptr );
|
||||
com_editors |= EDITOR_DEBUGGER;
|
||||
break;
|
||||
|
||||
case DBMSG_CONNECTED:
|
||||
mConnected = true;
|
||||
HandleInspectScripts( nullptr );
|
||||
com_editors |= EDITOR_DEBUGGER;
|
||||
break;
|
||||
|
||||
|
@ -294,11 +296,13 @@ data supplied in the message.
|
|||
*/
|
||||
void rvDebuggerServer::HandleAddBreakpoint ( idBitMsg* msg )
|
||||
{
|
||||
bool onceOnly = false;
|
||||
long lineNumber;
|
||||
long id;
|
||||
char filename[2048]; // DG: randomly chose this size
|
||||
|
||||
// Read the breakpoint info
|
||||
onceOnly = msg->ReadBits( 1 ) ? true : false;
|
||||
lineNumber = msg->ReadInt ( );
|
||||
id = msg->ReadInt ( );
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ bool rvDebuggerWindow::Create ( HINSTANCE instance )
|
|||
|
||||
UpdateTitle ( );
|
||||
|
||||
Printf ( "Dhewm3 Script Debugger v1.0\n\n" );
|
||||
Printf ( "Dhewm3 Script Debugger v1.1\n\n" );
|
||||
|
||||
ShowWindow ( mWnd, SW_SHOW );
|
||||
UpdateWindow ( mWnd );
|
||||
|
|
Loading…
Reference in a new issue