Add a way to disable all the networking functionality in the emulator.

This commit is contained in:
Mr_Goldberg 2019-10-05 15:39:50 -04:00
parent 787cac47db
commit bd921b0939
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
6 changed files with 27 additions and 4 deletions

View file

@ -124,7 +124,7 @@ public:
//NOTE: for all functions ips/ports are passed/returned in host byte order
//ex: 127.0.0.1 should be passed as 0x7F000001
static std::set<uint32> resolve_ip(std::string dns);
Networking(CSteamID id, uint32 appid, uint16 port, std::set<uint32_t> *custom_broadcasts);
Networking(CSteamID id, uint32 appid, uint16 port, std::set<uint32_t> *custom_broadcasts, bool disable_sockets);
void addListenId(CSteamID id);
void setAppID(uint32 appid);
void Run();