attempt at arm fix
This commit is contained in:
parent
17a7c90245
commit
736c722880
@ -161,14 +161,15 @@ namespace LibTSforge.SPP
|
|||||||
default:
|
default:
|
||||||
return Path.Combine(
|
return Path.Combine(
|
||||||
Environment.ExpandEnvironmentVariables(
|
Environment.ExpandEnvironmentVariables(
|
||||||
(string)Registry.GetValue(
|
(string)RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, Environment.MachineName)
|
||||||
@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform",
|
.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SoftwareProtectionPlatform")
|
||||||
|
.GetValue(
|
||||||
"TokenStore",
|
"TokenStore",
|
||||||
string.Empty
|
string.Empty
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"data.dat"
|
"data.dat"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,14 +190,15 @@ namespace LibTSforge.SPP
|
|||||||
default:
|
default:
|
||||||
return Path.Combine(
|
return Path.Combine(
|
||||||
Environment.ExpandEnvironmentVariables(
|
Environment.ExpandEnvironmentVariables(
|
||||||
(string)Registry.GetValue(
|
(string)RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, Environment.MachineName)
|
||||||
@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform",
|
.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SoftwareProtectionPlatform")
|
||||||
|
.GetValue(
|
||||||
"TokenStore",
|
"TokenStore",
|
||||||
string.Empty
|
string.Empty
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"tokens.dat"
|
"tokens.dat"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,14 +206,11 @@ namespace LibTSforge.SPP
|
|||||||
{
|
{
|
||||||
string psPath;
|
string psPath;
|
||||||
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
psPath = GetPSPath(version);
|
psPath = GetPSPath(version);
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{
|
|
||||||
throw new FileNotFoundException("Failed to get path of physical store.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(psPath) || !File.Exists(psPath))
|
if (string.IsNullOrEmpty(psPath) || !File.Exists(psPath))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user