mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-20 19:02:23 +00:00
Reformatiere die Startup Ausgabe
This commit is contained in:
parent
0b7a5f23fb
commit
09c87ea0cc
16 changed files with 32 additions and 24 deletions
1
TODO
1
TODO
|
@ -9,6 +9,7 @@ Allgemein:
|
|||
- Wieso durchläuft der Client seine Shutdown-Rotine doppelt? Bekommen
|
||||
wir es evtl hin, das sie auch rekursiv nicht mehr aufgerufen wird?
|
||||
- Noch mal uncrustify über client/, common/, unix/ und sdl/
|
||||
- ====InitGame=== in allen Spielen ändern
|
||||
|
||||
Unix / SDL:
|
||||
- SDL GL-Backend refresh.c komplett neuschreiben
|
||||
|
|
|
@ -153,7 +153,7 @@ S_Init ( void )
|
|||
OGG_Init();
|
||||
}
|
||||
|
||||
Com_Printf( "------------------------------------\n" );
|
||||
Com_Printf( "------------------------------------\n\n" );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -275,7 +275,8 @@ void Qcommon_Init (int argc, char **argv)
|
|||
|
||||
#endif
|
||||
|
||||
Com_Printf ("====== Quake2 Initialized ======\n\n");
|
||||
Com_Printf ("==== Yamagi Quake II Initialized ====\n\n");
|
||||
Com_Printf ("*************************************\n\n");
|
||||
}
|
||||
|
||||
void Qcommon_Frame (int msec)
|
||||
|
|
|
@ -151,7 +151,8 @@ is loaded.
|
|||
*/
|
||||
void InitGame (void)
|
||||
{
|
||||
gi.dprintf ("==== InitGame ====\n");
|
||||
gi.dprintf ("Game is starting up.\n");
|
||||
gi.dprintf ("Game is baseq2.\n");
|
||||
|
||||
gun_x = gi.cvar ("gun_x", "0", 0);
|
||||
gun_y = gi.cvar ("gun_y", "0", 0);
|
||||
|
|
|
@ -505,7 +505,7 @@ void G_FindTeams (void)
|
|||
}
|
||||
}
|
||||
|
||||
gi.dprintf ("%i teams with %i entities\n", c, c2);
|
||||
gi.dprintf ("%i teams with %i entities.\n", c, c2);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -601,7 +601,7 @@ void SpawnEntities (const char *mapname, char *entities, const char *spawnpoint)
|
|||
ED_CallSpawn (ent);
|
||||
}
|
||||
|
||||
gi.dprintf ("%i entities inhibited\n", inhibit);
|
||||
gi.dprintf ("%i entities inhibited\n.", inhibit);
|
||||
|
||||
G_FindTeams ();
|
||||
|
||||
|
|
|
@ -146,7 +146,8 @@ is loaded.
|
|||
*/
|
||||
void InitGame (void)
|
||||
{
|
||||
gi.dprintf ("==== InitGame ====\n");
|
||||
gi.dprintf ("Game is starting up.\n");
|
||||
gi.dprintf ("Game is ctf.\n");
|
||||
|
||||
gun_x = gi.cvar ("gun_x", "0", 0);
|
||||
gun_y = gi.cvar ("gun_y", "0", 0);
|
||||
|
|
|
@ -487,7 +487,7 @@ void G_FindTeams (void)
|
|||
}
|
||||
}
|
||||
|
||||
gi.dprintf ("%i teams with %i entities\n", c, c2);
|
||||
gi.dprintf ("%i teams with %i entities.\n", c, c2);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -583,7 +583,7 @@ void SpawnEntities (char *mapname, char *entities, char *spawnpoint)
|
|||
ED_CallSpawn (ent);
|
||||
}
|
||||
|
||||
gi.dprintf ("%i entities inhibited\n", inhibit);
|
||||
gi.dprintf ("%i entities inhibited.\n", inhibit);
|
||||
|
||||
G_FindTeams ();
|
||||
|
||||
|
|
|
@ -1085,6 +1085,7 @@ int R_Init( void *hinstance, void *hWnd )
|
|||
/*
|
||||
** get our various GL strings
|
||||
*/
|
||||
ri.Con_Printf (PRINT_ALL, "\nOpenGL setting:\n", gl_config.vendor_string );
|
||||
gl_config.vendor_string = (char *)qglGetString (GL_VENDOR);
|
||||
ri.Con_Printf (PRINT_ALL, "GL_VENDOR: %s\n", gl_config.vendor_string );
|
||||
gl_config.renderer_string = (char *)qglGetString (GL_RENDERER);
|
||||
|
|
|
@ -49,11 +49,11 @@ int GLimp_Init(void)
|
|||
|
||||
if (SDL_Init(SDL_INIT_VIDEO) == -1)
|
||||
{
|
||||
ri.Con_Printf( PRINT_ALL, "\nSDL_Init( SDL_INIT_VIDEO ) FAILED (%s)\n", SDL_GetError());
|
||||
ri.Con_Printf( PRINT_ALL, "Couldn't init SDL video: %s.\n", SDL_GetError());
|
||||
return false;
|
||||
}
|
||||
SDL_VideoDriverName( driverName, sizeof( driverName ) - 1 );
|
||||
ri.Con_Printf( PRINT_ALL, "\nSDL using driver \"%s\"\n", driverName );
|
||||
ri.Con_Printf( PRINT_ALL, "SDL video driver is \"%s\".\n", driverName );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -187,7 +187,7 @@ static qboolean GLimp_InitGraphics( qboolean fullscreen )
|
|||
/* Initialize the stencil buffer */
|
||||
if (!SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE, &stencil_bits))
|
||||
{
|
||||
ri.Con_Printf(PRINT_ALL, "I: got %d bits of stencil\n", stencil_bits);
|
||||
ri.Con_Printf(PRINT_ALL, "Got %d bits of stencil\n.", stencil_bits);
|
||||
|
||||
if (stencil_bits >= 1)
|
||||
{
|
||||
|
@ -198,8 +198,7 @@ static qboolean GLimp_InitGraphics( qboolean fullscreen )
|
|||
/* Initialize hardware gamma */
|
||||
gl_state.hwgamma = true;
|
||||
vid_gamma->modified = true;
|
||||
ri.Con_Printf(PRINT_ALL, "Using hardware gamma\n");
|
||||
ri.Con_Printf(PRINT_ALL, "If this doesn't work your X11 driver is broken!\n");
|
||||
ri.Con_Printf(PRINT_ALL, "Using hardware gamma.\n");
|
||||
|
||||
/* Window title */
|
||||
SDL_WM_SetCaption("Yamagi Quake II", "Yamagi Quake II");
|
||||
|
|
|
@ -114,7 +114,7 @@ SNDDMA_Init(void)
|
|||
{
|
||||
if (SDL_Init(SDL_INIT_AUDIO) == -1)
|
||||
{
|
||||
Com_Printf ("Couldn't init SDL audio: %s\n", SDL_GetError ());
|
||||
Com_Printf ("Couldn't init SDL audio: %s.\n", SDL_GetError ());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ SNDDMA_Init(void)
|
|||
strcpy(drivername, "(UNKNOW)");
|
||||
}
|
||||
|
||||
Com_Printf("SDL audio driver is \"%s\"\n", drivername);
|
||||
Com_Printf("SDL audio driver is \"%s\".\n", drivername);
|
||||
|
||||
memset(&desired, '\0', sizeof(desired));
|
||||
memset(&optained, '\0', sizeof(optained));
|
||||
|
@ -182,7 +182,7 @@ SNDDMA_Init(void)
|
|||
dmasize = (dmabackend->samples * (dmabackend->samplebits / 8));
|
||||
dmabackend->buffer = calloc(1, dmasize);
|
||||
|
||||
Com_Printf("Starting SDL audio callback...\n");
|
||||
Com_Printf("Starting SDL audio callback.\n");
|
||||
SDL_PauseAudio(0);
|
||||
|
||||
Com_Printf("SDL audio initialized.\n");
|
||||
|
|
|
@ -331,6 +331,7 @@ void SV_InitGameProgs (void)
|
|||
if (ge)
|
||||
SV_ShutdownGameProgs ();
|
||||
|
||||
Com_Printf( "-------- game initialization -------\n" );
|
||||
|
||||
// load a new game dll
|
||||
import.multicast = SV_Multicast;
|
||||
|
@ -398,5 +399,7 @@ void SV_InitGameProgs (void)
|
|||
GAME_API_VERSION);
|
||||
|
||||
ge->Init ();
|
||||
|
||||
Com_Printf("------------------------------------\n\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ void SV_SpawnServer (char *server, char *spawnpoint, server_state_t serverstate,
|
|||
if (attractloop)
|
||||
Cvar_Set ("paused", "0");
|
||||
|
||||
Com_Printf ("------- Server Initialization -------\n");
|
||||
Com_Printf ("------- server initialization ------\n");
|
||||
|
||||
Com_DPrintf ("SpawnServer: %s\n",server);
|
||||
if (sv.demofile)
|
||||
|
@ -280,7 +280,7 @@ void SV_SpawnServer (char *server, char *spawnpoint, server_state_t serverstate,
|
|||
Cvar_FullSet ("mapname", sv.name, CVAR_SERVERINFO | CVAR_NOSET);
|
||||
Cvar_SetValue("windowed_mouse", 1);
|
||||
|
||||
Com_Printf ("-------------------------------------\n");
|
||||
Com_Printf ("-------------------------------------\n\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -58,7 +58,8 @@ main ( int argc, char **argv )
|
|||
saved_euid = geteuid();
|
||||
seteuid( getuid() );
|
||||
|
||||
printf( "Quake 2\n" );
|
||||
printf( "\nYamagi Quake II v%4.2f\n", VERSION);
|
||||
printf( "=====================\n\n");
|
||||
|
||||
Qcommon_Init( argc, argv );
|
||||
|
||||
|
|
|
@ -3502,11 +3502,11 @@ QGL_Init ( const char *dllname )
|
|||
return ( false );
|
||||
}
|
||||
|
||||
Com_Printf( "Using %s for OpenGL...", fn );
|
||||
Com_Printf( "Using %s for OpenGL.\n", fn );
|
||||
}
|
||||
else
|
||||
{
|
||||
Com_Printf( "Using %s for OpenGL...", dllname );
|
||||
Com_Printf( "Using %s for OpenGL.\n", dllname );
|
||||
}
|
||||
|
||||
qglAccum = dllAccum = GPA( "glAccum" );
|
||||
|
|
|
@ -410,7 +410,7 @@ Sys_GetGameAPI ( void *parms )
|
|||
Com_Error( ERR_FATAL, "Sys_GetGameAPI without Sys_UnloadingGame" );
|
||||
}
|
||||
|
||||
Com_Printf( "------- Loading %s -------\n", gamename );
|
||||
Com_Printf( "LoadLibrary(\"%s\")\n", gamename );
|
||||
|
||||
/* now run through the search paths */
|
||||
path = NULL;
|
||||
|
|
|
@ -232,7 +232,7 @@ VID_LoadRefresh ( char *name )
|
|||
VID_FreeReflib();
|
||||
}
|
||||
|
||||
Com_Printf( "------- Loading %s -------\n", name );
|
||||
Com_Printf( "----- refresher initialization -----\n");
|
||||
|
||||
/* regain root */
|
||||
seteuid( saved_euid );
|
||||
|
@ -327,7 +327,7 @@ VID_LoadRefresh ( char *name )
|
|||
setreuid( getuid(), getuid() );
|
||||
setegid( getgid() );
|
||||
|
||||
Com_Printf( "------------------------------------\n" );
|
||||
Com_Printf( "------------------------------------\n\n" );
|
||||
reflib_active = true;
|
||||
return ( true );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue