make sc ommand work on game server also

This commit is contained in:
Martin Michelsen
2022-05-22 10:50:50 -07:00
parent 37a7faf007
commit a50500a67d
9 changed files with 74 additions and 26 deletions
+3 -3
View File
@@ -18,8 +18,9 @@
// Forwawrd declaration due to reference cycle
// Forwawrd declarations due to reference cycles
class ProxyServer;
class Server;
struct PortConfiguration {
std::string name;
@@ -76,9 +77,8 @@ struct ServerState {
uint32_t local_address;
uint32_t external_address;
// TODO: This is only here because the menu selection handler has to call
// delete_session on it. Find a cleaner way to do this.
std::shared_ptr<ProxyServer> proxy_server;
std::shared_ptr<Server> game_server;
ServerState();