Startup messages as in the DOS exes

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 22
This commit is contained in:
Simon Howard 2005-07-23 19:42:56 +00:00
parent 7e2991e506
commit 6af18ee0fb
3 changed files with 20 additions and 18 deletions

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: i_system.c 18 2005-07-23 18:56:07Z fraggle $
// $Id: i_system.c 22 2005-07-23 19:42:56Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.4 2005/07/23 19:42:56 fraggle
// Startup messages as in the DOS exes
//
// Revision 1.3 2005/07/23 18:56:07 fraggle
// Remove unneccessary pragmas
//
@ -37,7 +40,7 @@
//-----------------------------------------------------------------------------
static const char
rcsid[] = "$Id: i_system.c 18 2005-07-23 18:56:07Z fraggle $";
rcsid[] = "$Id: i_system.c 22 2005-07-23 19:42:56Z fraggle $";
#include <stdlib.h>
@ -88,8 +91,12 @@ int I_GetHeapSize (void)
byte* I_ZoneBase (int* size)
{
byte *zonemem;
*size = mb_used*1024*1024;
return (byte *) malloc (*size);
zonemem = malloc (*size);
printf("zone memory: %x, %x allocated for zone\n",
(long) zonemem, *size);
return zonemem;
}

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: r_data.c 19 2005-07-23 19:17:11Z fraggle $
// $Id: r_data.c 22 2005-07-23 19:42:56Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.4 2005/07/23 19:42:56 fraggle
// Startup messages as in the DOS exes
//
// Revision 1.3 2005/07/23 19:17:11 fraggle
// Use ANSI-standard limit constants. Remove LINUX define.
//
@ -41,7 +44,7 @@
static const char
rcsid[] = "$Id: r_data.c 19 2005-07-23 19:17:11Z fraggle $";
rcsid[] = "$Id: r_data.c 22 2005-07-23 19:42:56Z fraggle $";
#include "i_system.h"
#include "z_zone.h"
@ -668,13 +671,9 @@ void R_InitColormaps (void)
void R_InitData (void)
{
R_InitTextures ();
printf ("\nInitTextures");
R_InitFlats ();
printf ("\nInitFlats");
R_InitSpriteLumps ();
printf ("\nInitSprites");
R_InitColormaps ();
printf ("\nInitColormaps");
}

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: r_main.c 19 2005-07-23 19:17:11Z fraggle $
// $Id: r_main.c 22 2005-07-23 19:42:56Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.4 2005/07/23 19:42:56 fraggle
// Startup messages as in the DOS exes
//
// Revision 1.3 2005/07/23 19:17:11 fraggle
// Use ANSI-standard limit constants. Remove LINUX define.
//
@ -40,7 +43,7 @@
//-----------------------------------------------------------------------------
static const char rcsid[] = "$Id: r_main.c 19 2005-07-23 19:17:11Z fraggle $";
static const char rcsid[] = "$Id: r_main.c 22 2005-07-23 19:42:56Z fraggle $";
@ -789,22 +792,15 @@ extern int screenblocks;
void R_Init (void)
{
R_InitData ();
printf ("\nR_InitData");
R_InitPointToAngle ();
printf ("\nR_InitPointToAngle");
R_InitTables ();
// viewwidth / viewheight / detailLevel are set by the defaults
printf ("\nR_InitTables");
R_SetViewSize (screenblocks, detailLevel);
R_InitPlanes ();
printf ("\nR_InitPlanes");
R_InitLightTables ();
printf ("\nR_InitLightTables");
R_InitSkyMap ();
printf ("\nR_InitSkyMap");
R_InitTranslationTables ();
printf ("\nR_InitTranslationsTables");
framecount = 0;
}