From 2ec7efd0ecb5467c01a7493970d2a1aaab3555a5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 24 May 2020 14:46:50 +0100 Subject: [PATCH] Add engine version string to ContentDB API request (#9890) --- builtin/mainmenu/dlg_contentstore.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index ce5c061..3f01d44 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -198,10 +198,11 @@ function store.load() assert(core.create_dir(tmpdir)) - local base_url = core.settings:get("contentdb_url") + local version = core.get_version() + local base_url = core.settings:get("contentdb_url") local url = base_url .. "/api/packages/?type=mod&type=game&type=txp&protocol_version=" .. - core.get_max_supp_proto() + core.get_max_supp_proto() .. "&engine_version=" .. version.string for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do item = item:trim()