- Deprecated GetSectionPrivate and FindOrAddSection, and accessors in FConfigFile that could return a non-const FConfigSection (this is so we can track modifications to config values)

- Added AddToSection, RemoveKeyFromSection, etc to replace directly accessing a FConfigSection
- Fixed up Epic code for the deprecations (at least the majority, some projects that aren't built by Horde presubmit may have some that we will address going forward)
#jira UE-194955
#rb david.harvey and various others

[CL 27731364 by josh adams in ue5-main branch]
This commit is contained in:
josh adams
2023-09-08 17:58:55 -04:00
parent f57f688290
commit a8a9a0b759
76 changed files with 627 additions and 432 deletions

View File

@@ -222,11 +222,7 @@ void FXcodeGPUDebuggerPluginModule::BeginFrameCapture(const FString& InCaptureFi
void FXcodeGPUDebuggerPluginModule::InjectDebugExecKeybind()
{
FConfigSection* Section = GConfig->GetSectionPrivate(TEXT("/Script/Engine.PlayerInput"), false, false, GInputIni);
if (Section != nullptr)
{
Section->HandleAddCommand(TEXT("DebugExecBindings"), TEXT("(Key=E,Command=\"Xcode.CaptureFrame\", Shift=true)"), false);
}
GConfig->AddUniqueToSection(TEXT("/Script/Engine.PlayerInput"), TEXT("DebugExecBindings"), TEXT("(Key=E,Command=\"Xcode.CaptureFrame\", Shift=true)"), GInputIni);
}
void FXcodeGPUDebuggerPluginModule::EndFrameCapture(void* HWnd, uint32 Flags, const FString& DestFileName)