Webternet extension now exposes API and acts like other SM extensions.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user