Merge pull request #603 from diamante0018/develop
[Download]: Update Download.cpp
This commit is contained in:
commit
3b8aa2563b
@ -1,5 +1,4 @@
|
||||
#include <STDInclude.hpp>
|
||||
#include "GSC/Script.hpp"
|
||||
|
||||
#include <mongoose.h>
|
||||
|
||||
@ -715,9 +714,6 @@ namespace Components
|
||||
Dvar::Register<bool>("sv_wwwDownload", false, Game::DVAR_NONE, "Set to true to enable downloading maps/mods from an external server.");
|
||||
Dvar::Register<const char*>("sv_wwwBaseUrl", "", Game::DVAR_NONE, "Set to the base url for the external map download.");
|
||||
}, Scheduler::Pipeline::MAIN);
|
||||
|
||||
Script::AddFunction("HttpGet", Script::ShowDeprecationWarning);
|
||||
Script::AddFunction("HttpCancel", Script::ShowDeprecationWarning);
|
||||
}
|
||||
|
||||
Download::~Download()
|
||||
|
@ -18,14 +18,6 @@ namespace Components
|
||||
std::unordered_map<std::string, int> Script::ScriptMainHandles;
|
||||
std::unordered_map<std::string, int> Script::ScriptInitHandles;
|
||||
|
||||
void Script::ShowDeprecationWarning()
|
||||
{
|
||||
Toast::Show("cardicon_gumby", "WARNING!", "You are using deprecated HttpGet/HttpCancel GSC function.", 2048);
|
||||
Logger::Print(Game::CON_CHANNEL_SCRIPT, "*** DEPRECATION WARNING ***\n");
|
||||
Logger::PrintError(Game::CON_CHANNEL_ERROR, "Attempted to execute deprecated built-in HttpGet/HttpCancel! These functions have been deemed unsafe and are scheduled for removal. Please update your mod!\n");
|
||||
Logger::Print(Game::CON_CHANNEL_SCRIPT, "***************************\n");
|
||||
}
|
||||
|
||||
void Script::FunctionError()
|
||||
{
|
||||
const auto* funcName = Game::SL_ConvertToString(FunctionName);
|
||||
|
@ -14,8 +14,6 @@ namespace Components
|
||||
|
||||
static const char* GetCodePosForParam(int index);
|
||||
|
||||
static void ShowDeprecationWarning();
|
||||
|
||||
// Probably a macro 'originally' but this is fine
|
||||
static Game::gentity_s* Scr_GetPlayerEntity(Game::scr_entref_t entref)
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include <STDInclude.hpp>
|
||||
#include "Game/Engine/LargeLocal.hpp"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user