ConfigHierarchy divergence between C++ and C#

Unreal Engine 5.7.3. Although I believe this effects earlier versions.

There is a divergence on where the C++ ConfigHierarchy looks for User*.ini files versus where C# ConfigHierarchy looks for them. Effects the AppSettings, UserSettings, and UserDir locations. We ran into this issue since we were storing the Unreal Build Accelerator UbaController settings in the unspaced UnrealEngine folder but were running some C++ tooling that could not see the configuration.

Would you recommend transitioning to the spaced “Unreal Engine/” folder or would it okay to alter the C++ ConfigHierarchy GConfigLayers array to add the unspaced UnrealEngine folders?

Thanks.

// IN C++
 
// AppSettings/.../System*.ini
{ TEXT("AppSettingsDir"),         TEXT("{APPSETTINGS}Unreal Engine/Engine/Config/System{TYPE}.ini"), EConfigLayerFlags::NoExpand },
// UserSettings/.../User*.ini
{ TEXT("UserSettingsDir"),        TEXT("{USERSETTINGS}Unreal Engine/Engine/Config/User{TYPE}.ini"), EConfigLayerFlags::NoExpand },
// UserDir/.../User*.ini
{ TEXT("UserDir"),              TEXT("{USER}Unreal Engine/Engine/Config/User{TYPE}.ini"), EConfigLayerFlags::NoExpand },
 
 
// IN C#
 
// AppSettings/.../System*.ini
"{APPSETTINGS}/Unreal Engine/Engine/Config/System{TYPE}.ini",
"{APPSETTINGS}/UnrealEngine/Engine/Config/System{TYPE}.ini",
// UserSettings/.../User*.ini
"{USERSETTINGS}/Unreal Engine/Engine/Config/User{TYPE}.ini",
"{USERSETTINGS}/UnrealEngine/Engine/Config/User{TYPE}.ini",
// UserDir/.../User*.ini
"{USER}/Unreal Engine/Engine/Config/User{TYPE}.ini",
"{USER}/UnrealEngine/Engine/Config/User{TYPE}.ini",

[Attachment Removed]

Ahh I see that only C# support was added for both, we will add no-space version to C++ (it’s a trivial change, so feel free to make it now until it’s in the engine)

[Attachment Removed]

Thanks! I figured it was a trivial change but the config system is fairly complex and wanted to be 100% certain.

[Attachment Removed]