aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/logic
diff options
context:
space:
mode:
authorAlexander Tkachev2016-08-15 17:05:24 +0600
committerEugene Sandulenko2016-08-30 23:26:29 +0200
commitaafc1ba145149b063c3c4f96c0f666eb98b522d5 (patch)
treea679cad6f8c31af1b1ad659e942d4d54ac550d10 /engines/scumm/he/logic
parent4df16d6e1255e627665294bf60da0fc3d3e5d9a4 (diff)
downloadscummvm-rg350-aafc1ba145149b063c3c4f96c0f666eb98b522d5.tar.gz
scummvm-rg350-aafc1ba145149b063c3c4f96c0f666eb98b522d5.tar.bz2
scummvm-rg350-aafc1ba145149b063c3c4f96c0f666eb98b522d5.zip
HE: Add net_defines.h and a few stubs updates
SPUTM_CStringArrayFromScummString is still has to be implemented to finish those stubs. Net now has joinGame() and hostGame(), which are not implemented yet.
Diffstat (limited to 'engines/scumm/he/logic')
-rw-r--r--engines/scumm/he/logic/moonbase_logic.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/engines/scumm/he/logic/moonbase_logic.cpp b/engines/scumm/he/logic/moonbase_logic.cpp
index 89e1e95a16..328d288bfc 100644
--- a/engines/scumm/he/logic/moonbase_logic.cpp
+++ b/engines/scumm/he/logic/moonbase_logic.cpp
@@ -26,6 +26,7 @@
#include "scumm/he/moonbase/ai_main.h"
#ifdef USE_SDL_NET
#include "scumm/he/moonbase/net_main.h"
+#include "scumm/he/moonbase/net_defines.h"
#endif
namespace Scumm {
@@ -509,12 +510,24 @@ int LogicHEmoonbase::op_net_get_ip_from_name(int op, int numArgs, int32 *args) {
return 1;
}
int LogicHEmoonbase::op_net_host_tcpip_game(int op, int numArgs, int32 *args) {
- warning("STUB: op_net_host_tcpip_game()");
- return 1;
+ char sessionName[MAX_SESSION_NAME];
+ char userName[MAX_PLAYER_NAME];
+
+ // TODO:
+ //SPUTM_CStringArrayFromScummString(args[0], sessionName, sizeof(sessionName));
+ //SPUTM_CStringArrayFromScummString(args[1], userName, sizeof(userName));
+
+ return _vm1->_moonbase->_net->hostGame(sessionName, userName);
}
int LogicHEmoonbase::op_net_join_tcpip_game(int op, int numArgs, int32 *args) {
- warning("STUB: op_net_join_tcpip_game()");
- return 1;
+ char szIP[MAX_IP_SIZE];
+ char userName[MAX_PLAYER_NAME];
+
+ // TODO:
+ //SPUTM_CStringArrayFromScummString(args[0], szIP, sizeof(szIP));
+ //SPUTM_CStringArrayFromScummString(args[1], userName, sizeof(userName));
+
+ return _vm1->_moonbase->_net->joinGame(szIP, userName);
}
#endif