[skip ci] various fixes
This commit is contained in:
1 parent
0c7bd4b3e0
commit
0f33f72cc1
7 files changed
+67
-2
No files matched your search
@@ -24,14 +24,18 @@ function LoadProfilesFromRegistry()
|
||||
|
||||
' Step 1: Load user profiles from registry
|
||||
userProfiles = RegistryUtils.Read(RegistryUtils.USER_PROFILES)
|
||||
if userProfiles <> invalid
|
||||
userProfiles = StringUtils.ParseJsonSafe(userProfiles)
|
||||
if userProfiles = invalid
|
||||
LogError("user_profiles registry value is corrupt (unparseable); resetting to empty")
|
||||
end if
|
||||
end if
|
||||
|
||||
if userProfiles = invalid
|
||||
userProfiles = {
|
||||
profiles: []
|
||||
currentProfile: invalid
|
||||
}
|
||||
else
|
||||
userProfiles = StringUtils.ParseJsonSafe(userProfiles)
|
||||
end if
|
||||
|
||||
' Step 2: Migrate existing profiles to new format (if needed)
|
||||
|
||||
Reference in new issue
Block a user