Webternet extension now exposes API and acts like other SM extensions.

This commit is contained in:
David Anderson
2009-01-11 23:56:34 -05:00
parent 9514c12982
commit e449b8384c
7 changed files with 209 additions and 5 deletions
+7
View File
@@ -33,6 +33,7 @@
#include <stdarg.h>
#include <sm_platform.h>
#include <curl/curl.h>
#include "curlapi.h"
/**
* @file extension.cpp
@@ -60,6 +61,12 @@ bool CurlExt::SDK_OnLoad(char *error, size_t maxlength, bool late)
return false;
}
if (!sharesys->AddInterface(myself, &g_webternet))
{
UTIL_Format(error, maxlength, "Could not add IWebternet interface");
return false;
}
return true;
}