Skip to content

Commit c3ca9b2

Browse files
committed
clean up on activation if the count is zero
1 parent 0d228c0 commit c3ca9b2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,12 @@ public override void Activate(string templateName) {
10941094
activeModificationsElement.RegistryStates.RemoveAt(registryStateIndex);
10951095
}
10961096

1097+
if (activeModificationsElement.RegistryStates.Count <= 0) {
1098+
activeModificationsElement.RegistryStates.BinaryType = BINARY_TYPE.SCS_64BIT_BINARY;
1099+
activeModificationsElement.RegistryStates._Administrator = false;
1100+
activeModificationsElement.RegistryStates._CurrentUser = String.Empty;
1101+
}
1102+
10971103
SetFlashpointSecurePlayerSection(TemplateName);
10981104
} catch {
10991105
// fail silently

0 commit comments

Comments
 (0)