- make DumpCPUInfo return a string instead of letting it print the info itself. Also consolidated I_Init, because both existing versions were identical.

This commit is contained in:
Christoph Oelckers 2020-04-11 13:05:12 +02:00
commit d523da1313
8 changed files with 28 additions and 54 deletions

View file

@ -2542,7 +2542,10 @@ static int D_DoomMain_Internal (void)
if (!restart)
{
if (!batchrun) Printf ("I_Init: Setting up machine state.\n");
I_Init ();
CheckCPUID(&CPU);
CalculateCPUSpeed();
auto ci = DumpCPUInfo(&CPU);
Printf("%s", ci.GetChars());
}
// [RH] Initialize palette management