Temporary fix for invalid hardware guids.

This commit is contained in:
momo5502 2016-01-08 22:33:47 +01:00
parent b58e62e5e4
commit 8f9b703dbb
2 changed files with 8 additions and 2 deletions

View File

@ -33,6 +33,12 @@ namespace Steam
CryptProtectData(Data, NULL, NULL, NULL, NULL, CRYPTPROTECT_LOCAL_MACHINE, &Data[1]);
subId = ::Utils::OneAtATime((char*)Data[1].pbData, 52);
if (!subId)
{
Components::Logger::Print("Hardware-based GUID generation failed!\n");
subId = (Game::Com_Milliseconds() + timeGetTime());
}
}
else // Random guid
{

View File

@ -85,9 +85,9 @@ namespace Steam
RegCloseKey(hRegKey);
SetDllDirectory(steamPath);
}
Overlay = LoadLibraryA(::Utils::VA("%s\\%s", steamPath, "gameoverlayrenderer.dll"));
Overlay = LoadLibraryA(::Utils::VA("%s\\%s", steamPath, "gameoverlayrenderer.dll"));
}
}
return true;