How to permanently save the GameUserSettings (like resolution) in packaged game?

I call it like this:



Scalability::SaveState(GGameUserSettingsIni);
GEngine->GameUserSettings->SaveSettings();

You can see here:
.com/Ringeril/bplus/blob/master/Source/bplus/Private/GameUserSettings_bplus.cpp#L315