Browse Source

engine: host: better engine features print

pull/2/head
Alibek Omarov 12 months ago
parent
commit
f2584dcb9d
  1. 31
      engine/common/host.c

31
engine/common/host.c

@ -192,24 +192,29 @@ Host_PrintEngineFeatures
*/ */
static void Host_PrintEngineFeatures( int features ) static void Host_PrintEngineFeatures( int features )
{ {
const char *features_str[] = struct
{ {
"Big World Support", uint32_t mask;
"Quake Compatibility", const char *msg;
"Deluxemap Support", } features_str[] =
"Improved MOVETYPE_PUSH", {
"Large Lightmaps", { ENGINE_WRITE_LARGE_COORD, "Big World Support" },
"Stupid Quake Bug Compensation", { ENGINE_QUAKE_COMPATIBLE, "Quake Compatibility" },
"Improved Trace Line", { ENGINE_LOAD_DELUXEDATA, "Deluxemap Support" },
"Studio MOVETYPE_STEP Lerping", { ENGINE_PHYSICS_PUSHER_EXT, "Improved MOVETYPE_PUSH" },
"Linear Gamma Space" { ENGINE_LARGE_LIGHTMAPS, "Large Lightmaps" },
{ ENGINE_COMPENSATE_QUAKE_BUG, "Stupid Quake Bug Compensation" },
{ ENGINE_IMPROVED_LINETRACE, "Improved Trace Line" },
{ ENGINE_COMPUTE_STUDIO_LERP, "Studio MOVETYPE_STEP Lerping" },
{ ENGINE_LINEAR_GAMMA_SPACE, "Linear Gamma Space" },
{ ENGINE_STEP_POSHISTORY_LERP, "MOVETYPE_STEP Position History Based Lerping" },
}; };
int i; int i;
for( i = 0; i < ARRAYSIZE( features_str ); i++ ) for( i = 0; i < ARRAYSIZE( features_str ); i++ )
{ {
if( FBitSet( features, BIT( i ))) if( FBitSet( features, features_str[i].mask ))
Con_Reportf( "^3EXT:^7 %s is enabled\n", features_str[i] ); Con_Reportf( "^3EXT:^7 %s is enabled\n", features_str[i].msg );
} }
} }

Loading…
Cancel
Save