mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +03:00

- added support for arbitrary number of containers for render_target - added command-line parameter -debug_internal (-di) to use the internal debugger when in debug mode - internal debugger supports all views except memory view - added "Debug" view to layout/vertical.lay to create more place for debug views in vertical games. The colors are ugly. Font rendering needs improvement. There are no shortcut keys right now. There is still a lot of room for more improvements. However, it works and does not depend on any ui toolkit. The interface has been designed to support displaying views programmatically e.g. from the ui. Currently, the ui render target is used. In order to support views being displayed in separate windows further changes are needed: - the osd layer must support creating and closing windows (render targets) on demand. - There must be a mode for render targets where their bounds follows the window size - Currently the render target size depends on the aspect of currently selected "artwork" view. - Render target needs a name property. Short HowTo: - Start MAME with "-debug -di" - Console, register and disasm views will be shown. Place them by dragging the view on the title bar. - Views can be resized by dragging the bottom-right yellow square. - The view having the focus has a green background title bar. - Hit "Tab" (IPT_UI_CONFIGURE) to show the menu. - Console and disasm views support a very simple facility to support entering commands and addresses. Just start typing. Hit "enter" when finished.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/*********************************************************************
|
|
|
|
debugint.c
|
|
|
|
Internal debugger frontend using render interface.
|
|
|
|
Copyright Nicola Salmoria and the MAME Team.
|
|
Visit http://mamedev.org for licensing and usage restrictions.
|
|
|
|
*********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __DEBUGINT_H__
|
|
#define __DEBUGINT_H__
|
|
|
|
|
|
/***************************************************************************
|
|
CONSTANTS
|
|
***************************************************************************/
|
|
|
|
|
|
/***************************************************************************
|
|
TYPE DEFINITIONS
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
GLOBAL VARIABLES
|
|
***************************************************************************/
|
|
|
|
|
|
/***************************************************************************
|
|
FUNCTION PROTOTYPES
|
|
***************************************************************************/
|
|
|
|
/* initialize the internal debugger */
|
|
void debugint_init(running_machine *machine);
|
|
|
|
/* process events for internal debugger */
|
|
void debugint_wait_for_debugger(running_device *device, int firststop);
|
|
|
|
/* update the internal debugger during a game */
|
|
void debugint_update_during_game(running_machine *machine);
|
|
|
|
#endif
|