Skip to content

Commit b3c7990

Browse files
authoredMay 24, 2020
Add engine version string to ContentDB API request (#9890)
1 parent 6456aba commit b3c7990

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎builtin/mainmenu/dlg_contentstore.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ function store.load()
198198

199199
assert(core.create_dir(tmpdir))
200200

201-
local base_url = core.settings:get("contentdb_url")
201+
local version = core.get_version()
202+
local base_url = core.settings:get("contentdb_url")
202203
local url = base_url ..
203204
"/api/packages/?type=mod&type=game&type=txp&protocol_version=" ..
204-
core.get_max_supp_proto()
205+
core.get_max_supp_proto() .. "&engine_version=" .. version.string
205206

206207
for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do
207208
item = item:trim()

0 commit comments

Comments
 (0)
Please sign in to comment.