diff options
author | Alexander Tkachev | 2016-08-17 15:31:46 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-30 23:26:29 +0200 |
commit | e33c401f7877dd5b0dede1dd147bbdb6e6a2576b (patch) | |
tree | 2512b81356132863f8400997bd20f7c5f513387d | |
parent | e70522e506cdeb4a0bb1d9deafe2f8062a9bd47e (diff) | |
download | scummvm-rg350-e33c401f7877dd5b0dede1dd147bbdb6e6a2576b.tar.gz scummvm-rg350-e33c401f7877dd5b0dede1dd147bbdb6e6a2576b.tar.bz2 scummvm-rg350-e33c401f7877dd5b0dede1dd147bbdb6e6a2576b.zip |
SCUMM HE: Add session quering-related kludges
-rw-r--r-- | engines/scumm/he/logic/moonbase_logic.cpp | 15 | ||||
-rw-r--r-- | engines/scumm/he/moonbase/net_main.cpp | 19 | ||||
-rw-r--r-- | engines/scumm/he/moonbase/net_main.h | 5 |
3 files changed, 32 insertions, 7 deletions
diff --git a/engines/scumm/he/logic/moonbase_logic.cpp b/engines/scumm/he/logic/moonbase_logic.cpp index d425b5ad58..d7158beb7c 100644 --- a/engines/scumm/he/logic/moonbase_logic.cpp +++ b/engines/scumm/he/logic/moonbase_logic.cpp @@ -415,21 +415,22 @@ int LogicHEmoonbase::op_net_close_provider(int op, int numArgs, int32 *args) { warning("STUB: op_net_close_provider()"); return 1; } + int LogicHEmoonbase::op_net_start_query_sessions(int op, int numArgs, int32 *args) { - warning("STUB: op_net_start_query_sessions()"); - return 1; + return _vm1->_moonbase->_net->startQuerySessions(); } + int LogicHEmoonbase::op_net_update_query_sessions(int op, int numArgs, int32 *args) { - warning("STUB: op_net_update_query_sessions()"); - return 1; + return _vm1->_moonbase->_net->updateQuerySessions(); } + int LogicHEmoonbase::op_net_stop_query_sessions(int op, int numArgs, int32 *args) { - warning("STUB: op_net_stop_query_sessions()"); + _vm1->_moonbase->_net->stopQuerySessions(); return 1; } + int LogicHEmoonbase::op_net_query_sessions(int op, int numArgs, int32 *args) { - warning("STUB: op_net_query_sessions()"); - return 1; + return _vm1->_moonbase->_net->querySessions(); } int LogicHEmoonbase::op_net_get_session_name(int op, int numArgs, int32 *args) { diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp index 1f2e094df0..71a4b8a2be 100644 --- a/engines/scumm/he/moonbase/net_main.cpp +++ b/engines/scumm/he/moonbase/net_main.cpp @@ -104,6 +104,25 @@ bool Net::destroyPlayer(int32 playerDPID) { return false; } +int32 Net::startQuerySessions() { + warning("STUB: Net::startQuerySessions()"); // StartQuerySessions + return 0; +} + +int32 Net::updateQuerySessions() { + warning("STUB: Net::updateQuerySessions()"); // UpdateQuerySessions + return 0; +} + +void Net::stopQuerySessions() { + warning("STUB: Net::stopQuerySessions()"); // StopQuerySessions +} + +int Net::querySessions() { + warning("STUB: Net::querySessions()"); // PN_QuerySessions + return 0; +} + bool Net::getHostName(char *hostname, int length) { warning("STUB: Net::getHostName(\"%s\", %d)", hostname, length); // PN_GetHostName return false; diff --git a/engines/scumm/he/moonbase/net_main.h b/engines/scumm/he/moonbase/net_main.h index 949332a8d4..12f255a7ee 100644 --- a/engines/scumm/he/moonbase/net_main.h +++ b/engines/scumm/he/moonbase/net_main.h @@ -48,6 +48,10 @@ public: int32 setProviderByName(int32 parameter1, int32 parameter2); void setFakeLatency(int time); bool destroyPlayer(int32 playerDPID); + int32 startQuerySessions(); + int32 updateQuerySessions(); + void stopQuerySessions(); + int querySessions(); private: @@ -57,6 +61,7 @@ public: bool getIPfromName(char *ip, int ipLength, char *nameBuffer); void getSessionName(int sessionNumber, char *buffer, int length); int getSessionPlayerCount(int sessionNumber); + private: //mostly getters |