mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- Format CON crash output in VM_ScriptInfo() much more nicely.
- Execute VM_ScriptInfo() when DNDEBUG is used. git-svn-id: https://svn.eduke32.com/eduke32@2229 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e9aec2a65b
commit
13c399f612
2 changed files with 11 additions and 2 deletions
|
@ -3689,6 +3689,9 @@ static void G_DumpDebugInfo(void)
|
|||
int32_t i,j,x;
|
||||
// FILE * fp=fopen("condebug.log","w");
|
||||
|
||||
VM_ScriptInfo();
|
||||
OSD_Printf("\n");
|
||||
|
||||
OSD_Printf("Current gamevar values:\n");
|
||||
for (i=0; i<MAX_WEAPONS; i++)
|
||||
{
|
||||
|
|
|
@ -69,12 +69,18 @@ void VM_ScriptInfo(void)
|
|||
|
||||
if (insptr)
|
||||
{
|
||||
initprintf("\n");
|
||||
|
||||
for (p=insptr-20; p<insptr+20; p++)
|
||||
{
|
||||
initprintf("%5d: %3d: ",(int32_t)(p - script),(int32_t)(p - insptr));
|
||||
|
||||
if (*p>>12&&(*p&0xFFF)<CON_END)
|
||||
initprintf("\n%5d: %5d %s ",(int32_t)(p-script),(int32_t)(*p>>12),keyw[*p&0xFFF]);
|
||||
initprintf("%5d %s",(int32_t)(*p>>12),keyw[*p&0xFFF]);
|
||||
else
|
||||
initprintf(" %d",(int32_t)*p);
|
||||
initprintf("%d",(int32_t)*p);
|
||||
|
||||
initprintf("\n");
|
||||
}
|
||||
|
||||
initprintf("\n");
|
||||
|
|
Loading…
Reference in a new issue