aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/logic
diff options
context:
space:
mode:
authorAlexander Tkachev2016-08-15 18:58:09 +0600
committerEugene Sandulenko2016-08-30 23:26:29 +0200
commitd7377c43edb818580213b7da1e78b68647065e45 (patch)
tree0d371ff157a5aea6feb13d335ca5cb402460c393 /engines/scumm/he/logic
parentaafc1ba145149b063c3c4f96c0f666eb98b522d5 (diff)
downloadscummvm-rg350-d7377c43edb818580213b7da1e78b68647065e45.tar.gz
scummvm-rg350-d7377c43edb818580213b7da1e78b68647065e45.tar.bz2
scummvm-rg350-d7377c43edb818580213b7da1e78b68647065e45.zip
HE: Add getStringFromArray()
It's ARRAY_GetStringFromArray(), which was used in Moonbase networking code as SPUTM_CStringArrayFromScummString().
Diffstat (limited to 'engines/scumm/he/logic')
-rw-r--r--engines/scumm/he/logic/moonbase_logic.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/he/logic/moonbase_logic.cpp b/engines/scumm/he/logic/moonbase_logic.cpp
index 328d288bfc..9f86147ac1 100644
--- a/engines/scumm/he/logic/moonbase_logic.cpp
+++ b/engines/scumm/he/logic/moonbase_logic.cpp
@@ -509,23 +509,23 @@ int LogicHEmoonbase::op_net_get_ip_from_name(int op, int numArgs, int32 *args) {
warning("STUB: op_net_get_ip_from_name()");
return 1;
}
+
int LogicHEmoonbase::op_net_host_tcpip_game(int op, int numArgs, int32 *args) {
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));
+ _vm1->getStringFromArray(args[0], sessionName, sizeof(sessionName));
+ _vm1->getStringFromArray(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) {
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));
+ _vm1->getStringFromArray(args[0], szIP, sizeof(szIP));
+ _vm1->getStringFromArray(args[1], userName, sizeof(userName));
return _vm1->_moonbase->_net->joinGame(szIP, userName);
}