aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/moonbase
diff options
context:
space:
mode:
authorAlexander Tkachev2016-08-17 15:40:43 +0600
committerEugene Sandulenko2016-08-30 23:26:29 +0200
commit5d9a3e17b2ba4e590fc86dd05459ab3a1be94c97 (patch)
treee13a626e27dc1ffe1fd782e825b5fc258a20169d /engines/scumm/he/moonbase
parente33c401f7877dd5b0dede1dd147bbdb6e6a2576b (diff)
downloadscummvm-rg350-5d9a3e17b2ba4e590fc86dd05459ab3a1be94c97.tar.gz
scummvm-rg350-5d9a3e17b2ba4e590fc86dd05459ab3a1be94c97.tar.bz2
scummvm-rg350-5d9a3e17b2ba4e590fc86dd05459ab3a1be94c97.zip
SCUMM HE: Add provider-related kludges
Diffstat (limited to 'engines/scumm/he/moonbase')
-rw-r--r--engines/scumm/he/moonbase/net_main.cpp21
-rw-r--r--engines/scumm/he/moonbase/net_main.h4
2 files changed, 24 insertions, 1 deletions
diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp
index 71a4b8a2be..8938e05ffb 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -123,6 +123,21 @@ int Net::querySessions() {
return 0;
}
+int Net::queryProviders() {
+ warning("STUB: Net::queryProviders()"); // PN_QueryProviders
+ return 0;
+}
+
+int Net::setProvider(int providerIndex) {
+ warning("STUB: Net::setProvider(%d)", providerIndex); // PN_SetProvider
+ return 0;
+}
+
+int Net::closeProvider() {
+ warning("STUB: Net::closeProvider()"); // PN_CloseProvider
+ return 0;
+}
+
bool Net::getHostName(char *hostname, int length) {
warning("STUB: Net::getHostName(\"%s\", %d)", hostname, length); // PN_GetHostName
return false;
@@ -134,7 +149,7 @@ bool Net::getIPfromName(char *ip, int ipLength, char *nameBuffer) {
}
void Net::getSessionName(int sessionNumber, char *buffer, int length) {
- warning("STUB: Net::getSessionPlayerCount(%d, \"%s\", %d)", sessionNumber, buffer, length); // PN_GetSessionName
+ warning("STUB: Net::getSessionName(%d, \"%s\", %d)", sessionNumber, buffer, length); // PN_GetSessionName
}
int Net::getSessionPlayerCount(int sessionNumber) {
@@ -144,4 +159,8 @@ int Net::getSessionPlayerCount(int sessionNumber) {
return 0;
}
+void Net::getProviderName(int providerIndex, char *buffer, int length) {
+ warning("STUB: Net::getProviderName(%d, \"%s\", %d)", providerIndex, buffer, length); // PN_GetProviderName
+}
+
} // End of namespace Scumm
diff --git a/engines/scumm/he/moonbase/net_main.h b/engines/scumm/he/moonbase/net_main.h
index 12f255a7ee..0490c1ce10 100644
--- a/engines/scumm/he/moonbase/net_main.h
+++ b/engines/scumm/he/moonbase/net_main.h
@@ -52,6 +52,9 @@ public:
int32 updateQuerySessions();
void stopQuerySessions();
int querySessions();
+ int queryProviders();
+ int setProvider(int providerIndex);
+ int closeProvider();
private:
@@ -61,6 +64,7 @@ public:
bool getIPfromName(char *ip, int ipLength, char *nameBuffer);
void getSessionName(int sessionNumber, char *buffer, int length);
int getSessionPlayerCount(int sessionNumber);
+ void getProviderName(int providerIndex, char *buffer, int length);
private:
//mostly getters