Skip to main content

UpdateConfig

AndroidiOSWindows
If you were looking for the method for use with Unity, see UpdateConfig for Unity SDK.
caution

The sequence when the API is invoked is uncontrollable, and issues may happen with third-party SDK initializations. It is not recommended for games to use this API. Please reach out to the Player Network representative if it is really required.

UpdateConfig allows setting empty string values. When the key is set to an empty value, GetConfig will return empty and INTLConfig.ini will change the value to empty.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool UpdateConfig(TMap<FString, FString> Cfg, const FString Project = "INTL");

Input parameters

ParameterTypeDescription
CfgTMap<FString, FString>Configuration content
ProjectFStringDefault parameters, keep unchanged

Code sample

TMap<FString, FString> config;
config.Add("LOG_LEVEL", "1");
UINTLSDKAPI::UpdateConfig(config);