slightly improve arm64 fix

This commit is contained in:
Wither OrNot 2025-04-04 05:24:33 -04:00
parent 93b29d3acc
commit 3a1b9c481d

View File

@ -164,7 +164,10 @@ namespace LibTSforge.SPP
(string)Registry.GetValue( (string)Registry.GetValue(
@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform", @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform",
"TokenStore", "TokenStore",
@"C:\Windows\System32\spp\store\2.0" Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.System),
@"spp\store\2.0"
)
) )
), ),
"data.dat" "data.dat"
@ -192,7 +195,10 @@ namespace LibTSforge.SPP
(string)Registry.GetValue( (string)Registry.GetValue(
@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform", @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform",
"TokenStore", "TokenStore",
@"C:\Windows\System32\spp\store\2.0" Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.System),
@"spp\store\2.0"
)
) )
), ),
"tokens.dat" "tokens.dat"
@ -204,13 +210,13 @@ namespace LibTSforge.SPP
{ {
string psPath; string psPath;
try //try
{ {
psPath = GetPSPath(version); psPath = GetPSPath(version);
} }
catch //catch
{ {
throw new FileNotFoundException("Failed to get path of physical store."); //throw new FileNotFoundException("Failed to get path of physical store.");
} }
if (string.IsNullOrEmpty(psPath) || !File.Exists(psPath)) if (string.IsNullOrEmpty(psPath) || !File.Exists(psPath))