diff options
author | Alexander Tkachev | 2016-08-15 19:10:27 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-30 23:26:29 +0200 |
commit | 75c48fd195e510167d02fdc603411fcee4343b00 (patch) | |
tree | 1f8d482832d35661030b1e00f427efca42949c5e /engines/scumm/he/logic | |
parent | d7377c43edb818580213b7da1e78b68647065e45 (diff) | |
download | scummvm-rg350-75c48fd195e510167d02fdc603411fcee4343b00.tar.gz scummvm-rg350-75c48fd195e510167d02fdc603411fcee4343b00.tar.bz2 scummvm-rg350-75c48fd195e510167d02fdc603411fcee4343b00.zip |
HE: Replacing some Logic stubs with Net stubs
Slowly moving kludge switch case contents into ScummVM Logic methods and
thus adding more Net stubs.
Diffstat (limited to 'engines/scumm/he/logic')
-rw-r--r-- | engines/scumm/he/logic/moonbase_logic.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/scumm/he/logic/moonbase_logic.cpp b/engines/scumm/he/logic/moonbase_logic.cpp index 9f86147ac1..7e7736835d 100644 --- a/engines/scumm/he/logic/moonbase_logic.cpp +++ b/engines/scumm/he/logic/moonbase_logic.cpp @@ -475,21 +475,23 @@ int LogicHEmoonbase::op_net_set_ai_player_count(int op, int numArgs, int32 *args warning("STUB: op_net_set_ai_player_count()"); return 1; } + int LogicHEmoonbase::op_net_add_user(int op, int numArgs, int32 *args) { - warning("STUB: op_net_add_user()"); - return 1; + char userName[MAX_PLAYER_NAME]; + _vm1->getStringFromArray(args[0], userName, sizeof(userName)); + return _vm1->_moonbase->_net->addUser(userName, userName); } + int LogicHEmoonbase::op_net_remove_user(int op, int numArgs, int32 *args) { - warning("STUB: op_net_remove_user()"); - return 1; + return _vm1->_moonbase->_net->removeUser(); } + int LogicHEmoonbase::op_net_who_sent_this(int op, int numArgs, int32 *args) { - warning("STUB: op_net_who_sent_this()"); - return 1; + return _vm1->_moonbase->_net->whoSentThis(); } + int LogicHEmoonbase::op_net_who_am_i(int op, int numArgs, int32 *args) { - warning("STUB: op_net_who_am_i()"); - return 1; + return _vm1->_moonbase->_net->whoAmI(); } int LogicHEmoonbase::op_net_set_provider_by_name(int op, int numArgs, int32 *args) { |