[NEED HELP] Saving/Loading GameUserSettings

Greetings.

I’m toying with the GameUserSettings (specifically the scalability settings). Using UGameUserSettings::SetAntiAliasingQuality() then UGameUserSettings::ApplySettings(), for instance, does change the Anti Aliasing quality, but it seems that it doesn’t save the GameUserSettings (I assume at GameUserSettings.ini?) when using UGameUserSettings::SaveSettings(), so when I use UGameUserSettings::LoadSettings(), I get nothing.

This is my code.


switch (setting)
	{
	case EGraphicSetting::GS_ANTIALIASING:
		gameUserSettings->SetAntiAliasingQuality(qualityVal);		
		break;
// As well with other cases
}

To retrieve the current settings I use this code below. I get my default -1 always.


int32 result = -1;
	GetUserSettings();

	switch (setting)
	{
	case EGraphicSetting::GS_ANTIALIASING:
		UE_LOG(LogClass, Log, TEXT("Loading %s setting"), *GetSettingName(setting));
		gameUserSettings->GetAntiAliasingQuality();
		break;
//Same with other cases
}

To apply and save the settings I’m using this.


void UGraphicSettingsComponent::ApplySettings()
{
	GetUserSettings();
	gameUserSettings->ApplyNonResolutionSettings();
	gameUserSettings->ApplySettings(true);	
	gameUserSettings->SaveSettings();
}

To load the settings, I’m calling this on a BeginPlay


GetUserSettings();
	gameUserSettings->SaveSettings();
	gameUserSettings->LoadSettings();

This will change the settings in editor, but it won’t save the data. Oddly, it does change the editor scalability settings, but the GameUserSettings.ini (or Scalability.ini, for that matter) won’t change under “Saved” folder, thus failing to recover the applied values using LoadSettings()

Anything I’m missing? While I’ve read that there’s the UWorld::Exec() function, I’ve also read it’s not that advisable for use.

Thanks in advance