Closed nickdnk closed 1 year ago
This cleans up the implementation of remote loading of match configurations.
http.sp
g_LoadedConfigUrl
stock
MatchConfigFail
LogError
get5_loadmatch_url
g_LoadedConfigFile
Tested and works fine. Tested invalid parameters, invalid URL, request timeout, 404 (non-200 range), invalid match config file, successful load etc.
This cleans up the implementation of remote loading of match configurations.
http.sp
.g_LoadedConfigUrl
global variable and use HTTP context datapack.stock
modifier.MatchConfigFail
instead ofLogError
in this context.get5_loadmatch_url
command before rejecting it due to already loaded config.g_LoadedConfigFile
to the loaded URL if the config successfully loads.Tested and works fine. Tested invalid parameters, invalid URL, request timeout, 404 (non-200 range), invalid match config file, successful load etc.