miscellaneous fixes
This commit is contained in:
parent
84a0c754a3
commit
17a7c90245
@ -8,7 +8,7 @@ namespace LibTSforge.Activators
|
||||
{
|
||||
public static void Activate(PSVersion version, bool production, Guid actId)
|
||||
{
|
||||
if (version != PSVersion.WinModern)
|
||||
if (version != PSVersion.WinModern && version != PSVersion.WinBlue)
|
||||
{
|
||||
throw new NotSupportedException("AVMA licenses are not available for this product.");
|
||||
}
|
||||
|
@ -183,6 +183,12 @@ namespace LibTSforge
|
||||
|
||||
public static class Utils
|
||||
{
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetSystemDefaultLCID();
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern bool Wow64EnableWow64FsRedirection(bool Wow64FsEnableRedirection);
|
||||
|
||||
public static string DecodeString(byte[] data)
|
||||
{
|
||||
return Encoding.Unicode.GetString(data).Trim('\0');
|
||||
@ -193,9 +199,6 @@ namespace LibTSforge
|
||||
return Encoding.Unicode.GetBytes(str + '\0');
|
||||
}
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetSystemDefaultLCID();
|
||||
|
||||
public static uint CRC32(byte[] data)
|
||||
{
|
||||
const uint polynomial = 0x04C11DB7;
|
||||
|
@ -33,7 +33,7 @@ namespace LibTSforge.SPP
|
||||
|
||||
bool stopped = false;
|
||||
|
||||
for (int i = 0; stopped == false && i < 360; i++)
|
||||
for (int i = 0; stopped == false && i < 1080; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -48,7 +48,7 @@ namespace LibTSforge.SPP
|
||||
}
|
||||
catch (InvalidOperationException ex)
|
||||
{
|
||||
Logger.WriteLine("Warning: Stopping sppsvc failed, retrying. Details:" + ex.Message);
|
||||
Logger.WriteLine("Warning: Stopping sppsvc failed, retrying. Details: " + ex.Message);
|
||||
System.Threading.Thread.Sleep(500);
|
||||
continue;
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ namespace LibTSforge.TokenStore
|
||||
BinaryReader reader = new BinaryReader(TokensFile);
|
||||
do
|
||||
{
|
||||
reader.ReadUInt32();
|
||||
nextBlock = reader.ReadUInt32();
|
||||
|
||||
for (int i = 0; i < ENTRIES_PER_BLOCK; i++)
|
||||
|
@ -35,6 +35,8 @@ namespace TSforgeCLI
|
||||
{
|
||||
Logger.WriteLine("TSforge (c) MASSGRAVE 2025");
|
||||
|
||||
Utils.Wow64EnableWow64FsRedirection(false);
|
||||
|
||||
try
|
||||
{
|
||||
if (args.Length == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user