1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

Discard unwanted libraries from discord integration attempt.

This commit is contained in:
Sandu Liviu Catalin
2021-01-28 13:17:06 +02:00
parent da39892bb0
commit 9efcfe2fa9
831 changed files with 3916 additions and 215608 deletions

View File

@ -6,7 +6,7 @@ namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQMODE_DECL_TYPENAME(SqCpSslOptions, _SC("SqCprSslOptions"))
SQMODE_DECL_TYPENAME(SqCpError, _SC("SqCprError"))
SQMODE_DECL_TYPENAME(SqCpError, _SC("SqCpError"))
SQMODE_DECL_TYPENAME(SqCpCookies, _SC("SqCprCookies"))
SQMODE_DECL_TYPENAME(SqCpHeader, _SC("SqCprHeader"))
SQMODE_DECL_TYPENAME(SqCpResponse, _SC("SqCprResponse"))

View File

@ -1,20 +0,0 @@
// ------------------------------------------------------------------------------------------------
#include "Library/Discord.hpp"
#include "Base/Shared.hpp"
// ------------------------------------------------------------------------------------------------
#include <cstdlib>
#include <cstring>
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
// ================================================================================================
void Register_Discord(HSQUIRRELVM vm)
{
}
} // Namespace:: SqMod

View File

@ -1,11 +0,0 @@
#pragma once
// ------------------------------------------------------------------------------------------------
#include "SqBase.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
} // Namespace:: SqMod

View File

@ -4,10 +4,23 @@
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
struct CvInit {
#if defined(NO_SSL)
CvInit() { mg_init_library(MG_FEATURES_FILES|MG_FEATURES_IPV6|MG_FEATURES_WEBSOCKET|MG_FEATURES_CACHE|MG_FEATURES_HTTP2); }
#else
CvInit() { mg_init_library(MG_FEATURES_FILES|MG_FEATURES_SSL|MG_FEATURES_IPV6|MG_FEATURES_WEBSOCKET|MG_FEATURES_CACHE|MG_FEATURES_HTTP2); }
#endif
} g_CvInit;
// ================================================================================================
void Register_Web(HSQUIRRELVM vm)
{
Table wbns(vm);
RootTable(vm).Bind(_SC("SqWeb"), wbns);
}
} // Namespace:: SqMod

View File

@ -2,5 +2,22 @@
// ------------------------------------------------------------------------------------------------
#include "Base/Shared.hpp"
#include "Misc/Signal.hpp"
// ------------------------------------------------------------------------------------------------
#include <memory>
#include <vector>
#include <memory>
#include <thread>
#include <functional>
#include <algorithm>
// ------------------------------------------------------------------------------------------------
#include <civetweb.h>
// ------------------------------------------------------------------------------------------------
namespace SqMod {
} // Namespace:: SqMod