Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable MAD on vanilla #636

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
4 changes: 4 additions & 0 deletions primedev/mods/autodownload/moddownloader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "moddownloader.h"
#include "core/vanilla.h"
#include <rapidjson/fwd.h>
#include <mz_strm_mem.h>
#include <mz.h>
Expand Down Expand Up @@ -587,6 +588,9 @@ void ModDownloader::DownloadMod(std::string modName, std::string modVersion)

ON_DLL_LOAD_RELIESON("engine.dll", ModDownloader, (ConCommand), (CModule module))
{
if (g_pVanillaCompatibility->GetVanillaCompatibility())
return;

g_pModDownloader = new ModDownloader();
g_pModDownloader->FetchModsListFromAPI();
}
Expand Down