So… how I can create this custom INI?
With this?
// INITIALIZER CONSTRUCTOR (DEFAULT)
UCndSysSave_UserSettings::UCndSysSave_UserSettings()
{
GGameUserSettingsIni = FPaths::ProjectSavedDir() + TEXT("CndGameUserSettings.ini");
CreateCustomIniFile():
}
void CreateCustomIniFile()
{
// if (FileExists) {} else {}
FString CustomFileName = FPaths::ProjectConfigDir() + TEXT("CndGameUserSettings.ini");
FString SectionName = TEXT("CustomSettings");
FString KeyName = TEXT("Version");
int32 Cnd_Version_Initial = 1;
GConfig->SetInt(*SectionName, *KeyName, Cnd_Version_Initial, *CustomFileName);
GConfig->Flush(false, *CustomFileName);
}