MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / MediaPrint

Method MediaPrint

neo/framework/DeclManager.cpp:1489–1504  ·  view source on GitHub ↗

=================== idDeclManagerLocal::MediaPrint This is just used to nicely indent media caching prints =================== */

Source from the content-addressed store, hash-verified

1487===================
1488*/
1489void idDeclManagerLocal::MediaPrint( const char *fmt, ... ) {
1490 if ( !decl_show.GetInteger() ) {
1491 return;
1492 }
1493 for ( int i = 0 ; i < indent ; i++ ) {
1494 common->Printf( " " );
1495 }
1496 va_list argptr;
1497 char buffer[1024];
1498 va_start (argptr,fmt);
1499 idStr::vsnPrintf( buffer, sizeof(buffer), fmt, argptr );
1500 va_end (argptr);
1501 buffer[sizeof(buffer)-1] = '\0';
1502
1503 common->Printf( "%s", buffer );
1504}
1505
1506/*
1507===================

Callers 7

CacheDictionaryMediaMethod · 0.80
MakeDefaultMethod · 0.80
ParseLocalMethod · 0.80
ImageFromFileMethod · 0.80
GetImageMethod · 0.80
FindSoundMethod · 0.80
CacheDictionaryMediaMethod · 0.80

Calls 2

GetIntegerMethod · 0.80
PrintfMethod · 0.45

Tested by

no test coverage detected