You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb #rnx [CL 14075271 by Marc Audy in ue5-main branch]
This commit is contained in:
@@ -1561,12 +1561,31 @@ bool FIOSPlatformMisc::DeleteStoredValue(const FString& InStoreId, const FString
|
||||
{
|
||||
NSUserDefaults* UserSettings = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
// store it
|
||||
// Remove it
|
||||
[UserSettings removeObjectForKey:MakeStoredValueKeyName(InSectionName, InKeyName)];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool FIOSPlatformMisc::DeleteStoredSection(const FString& InStoreId, const FString& InSectionName)
|
||||
{
|
||||
bool bRemoved = false;
|
||||
NSUserDefaults* UserSettings = [NSUserDefaults standardUserDefaults];
|
||||
NSDictionary<NSString*,id>* KeyValues = [UserSettings dictionaryRepresentation];
|
||||
NSString* SectionName = [NSString stringWithFString:InSectionName];
|
||||
|
||||
for (id Key in KeyValues)
|
||||
{
|
||||
if ([Key hasPrefix:SectionName])
|
||||
{
|
||||
[UserSettings removeObjectForKey:Key];
|
||||
bRemoved = true;
|
||||
}
|
||||
}
|
||||
|
||||
return bRemoved;
|
||||
}
|
||||
|
||||
void FIOSPlatformMisc::SetGracefulTerminationHandler()
|
||||
{
|
||||
struct sigaction Action;
|
||||
|
||||
Reference in New Issue
Block a user