Skip to content

Commit 19e1249

Browse files
committed
Add engine + ABI version to server info response
1 parent 059cb61 commit 19e1249

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/engine/server/sv_main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,10 @@ static void SVC_Info( const netadr_t& from, const Cmd::Args& args )
599599
}
600600

601601
info_map["gamename"] = GAMENAME_STRING; // Arnout: to be able to filter out Quake servers
602+
info_map["abi"] = IPC::SYSCALL_ABI_VERSION;
603+
// Add the engine version. But is that really what we want? Probably the gamelogic version would
604+
// be more interesting to players. Oh well, it's what's available for now.
605+
info_map["daemonver"] = ENGINE_VERSION;
602606

603607
Net::OutOfBandPrint( netsrc_t::NS_SERVER, from, "infoResponse\n%s", InfoMapToString( info_map ) );
604608
}

src/shared/client/cg_api.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ int trap_LAN_GetServerCount( int source )
627627
return count;
628628
}
629629

630+
// See SVC_Info() for the keys that are supposed to be available in `info`
630631
void trap_LAN_GetServerInfo( int source, int n, trustedServerInfo_t &trustedInfo, std::string &info )
631632
{
632633
VM::SendMsg<LAN::GetServerInfoMsg>(source, n, trustedInfo, info);

0 commit comments

Comments
 (0)