Move engine verification to front end

This can't be in the backend since it uses game-specific information.
This commit is contained in:
Boondorl 2025-06-25 12:33:09 -04:00 committed by Ricardo Luís Vaz Silva
commit c36ea479a8
2 changed files with 22 additions and 7 deletions

View file

@ -1651,6 +1651,19 @@ void NetUpdate(int tics)
// from the frontend should be put in these, all backend handling should be
// done in the core files.
size_t Net_SetEngineInfo(uint8_t*& stream)
{
stream[0] = VER_MAJOR % 256;
stream[1] = VER_MINOR % 256;
stream[2] = VER_REVISION % 256;
return 3u;
}
bool Net_VerifyEngine(uint8_t*& stream)
{
return stream[0] == (VER_MAJOR % 256) && stream[1] == (VER_MINOR % 256) && stream[2] == (VER_REVISION % 256);
}
void Net_SetupUserInfo()
{
D_SetupUserInfo();