update island env layout

This commit is contained in:
DismissedLight
2024-07-26 11:19:10 +08:00
parent af7681c02d
commit d839a4c63c
4 changed files with 15 additions and 14 deletions

View File

@@ -94,7 +94,10 @@ internal sealed class GameFpsUnlocker : IGameFpsUnlocker
}
IslandEnvironmentView view = UpdateIslandEnvironment(handle, launchOptions);
context.Logger.LogDebug("Island Environment|{State}|{Error}", view.State, view.LastError);
if (view.State is not IslandState.Started)
{
context.Logger.LogDebug("Island Environment|{State}|{Error}", view.State, view.LastError);
}
}
}
}

View File

@@ -7,15 +7,14 @@ namespace Snap.Hutao.Service.Game.Unlocker.Island;
internal struct IslandEnvironment
{
public nuint Reserved1;
public int Reserved2;
public IslandState State;
public WIN32_ERROR LastError;
public int Reserved3;
public float FieldOfView;
public int TargetFrameRate;
public bool DisableFog;
public nuint FunctionOffsetFieldOfView;
public nuint FunctionOffsetTargetFrameRate;
public nuint FunctionOffsetFog;
public uint FunctionOffsetFieldOfView;
public uint FunctionOffsetTargetFrameRate;
public uint FunctionOffsetFog;
}

View File

@@ -7,15 +7,14 @@ namespace Snap.Hutao.Service.Game.Unlocker.Island;
internal struct IslandEnvironmentView
{
public nuint Reserved1;
public int Reserved2;
public IslandState State;
public WIN32_ERROR LastError;
public int Reserved3;
public float FieldOfView;
public int TargetFrameRate;
public bool DisableFog;
public nuint FunctionOffsetFieldOfView;
public nuint FunctionOffsetTargetFrameRate;
public nuint FunctionOffsetFog;
public uint FunctionOffsetFieldOfView;
public uint FunctionOffsetTargetFrameRate;
public uint FunctionOffsetFog;
}

View File

@@ -320,7 +320,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Snap.Hutao.UnlockerIsland" Version="1.1.4">
<PackageReference Include="Snap.Hutao.UnlockerIsland" Version="1.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>