<PropertyGroup Condition="$(TargetFramework.StartsWith('net3')) OR $(TargetFramework.StartsWith('net4')) OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
<PropertyGroup Condition="$(TargetFramework.StartsWith('net3')) OR $(TargetFramework.StartsWith('net4')) OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
@@ -456,12 +464,13 @@ public sealed class BasicPlatformSwitcher : IPlatformSwitcher
...
@@ -456,12 +464,13 @@ public sealed class BasicPlatformSwitcher : IPlatformSwitcher
casestrings:
casestrings:
returns;
returns;
casebyte[]b:
casebyte[]b:
returnHashStringHelper.GetSha256HashString(b);
returnHashs.String.SHA256(b);
default:
default:
Log.Warn(nameof(BasicPlatformSwitcher),$"{platform.FullName} Unexpected registry type encountered (1)! {r.GetType()}");
Log.Warn(nameof(BasicPlatformSwitcher),$"{platform.FullName} Unexpected registry type encountered (1)! {r.GetType()}");
returnnull;
returnnull;
}
}
}
}
#endif
if(string.IsNullOrEmpty(platform.UniqueIdPath))
if(string.IsNullOrEmpty(platform.UniqueIdPath))
returnnull;
returnnull;
...
@@ -519,13 +528,16 @@ public sealed class BasicPlatformSwitcher : IPlatformSwitcher
...
@@ -519,13 +528,16 @@ public sealed class BasicPlatformSwitcher : IPlatformSwitcher
}
}
elseif(platform.UniqueIdTypeisUniqueIdType.FILE_MD5)// TODO: TEST THIS! -- This is used for static files that do not change throughout the lifetime of an account login.
elseif(platform.UniqueIdTypeisUniqueIdType.FILE_MD5)// TODO: TEST THIS! -- This is used for static files that do not change throughout the lifetime of an account login.
varreg=$"Windows Registry Editor Version 5.00{Environment.NewLine}[HKEY_CURRENT_USER\\Software\\Valve\\Steam]{Environment.NewLine}\"AutoLoginUser\"=\"{userName}\"";