Skip to content

Commit

Permalink
Support showing all slots for CLES view
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Canann committed Jan 13, 2023
1 parent 2c29d3a commit c0cf82e
Show file tree
Hide file tree
Showing 11 changed files with 541 additions and 56 deletions.
6 changes: 3 additions & 3 deletions GES.Engine.Memory/GES.Engine.Memory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<Version>2.1.1</Version>
<Description>FFCC GES Tool</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
Expand All @@ -21,8 +21,8 @@
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
6 changes: 3 additions & 3 deletions GES.Engine.Processes/GES.Engine.Processes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<Version>2.1.1</Version>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
<UserSecretsId>ff02c859-7e0c-466a-8d97-eac2f037b653</UserSecretsId>
</PropertyGroup>

Expand Down
6 changes: 3 additions & 3 deletions GES.Engine.Scanning/GES.Engine.Scanning.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<Version>2.1.1</Version>
<Description>GES engine component for performant memory scanning. GES achieves fast memory scanning (often faster than Cheat Engine) by leveraging multi-threaded parallelism along with single core parallelism via SIMD instructions.

Scanners are JIT compiled into SSE, AVX, or AVX-512 instructions via RyuJIT through the System.Numerics.Vectors library.</Description>
Expand All @@ -21,8 +21,8 @@ Scanners are JIT compiled into SSE, AVX, or AVX-512 instructions via RyuJIT thro
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions GES.Engine.Utils/GES.Engine.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<Version>2.1.1</Version>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
6 changes: 3 additions & 3 deletions GES.Engine/GES.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Copyright></Copyright>
<PackageTags></PackageTags>
<NeutralLanguage />
<Version>2.0.0</Version>
<Version>2.1.1</Version>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

Expand All @@ -30,8 +30,8 @@
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions GES/GES.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<NoWarn>$(NoWarn);NU1605</NoWarn>
<SignAssembly>false</SignAssembly>
<ApplicationManifest>Application.manifest</ApplicationManifest>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>

Expand Down
11 changes: 10 additions & 1 deletion GES/Source/Mvvm/Converters/FFCC/ItemRefToIconConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,16 @@ public Object Convert(Object value, Type targetType, Object parameter, CultureIn
if (rawCommandListEntry != null)
{
inventorySlot = rawCommandListEntry.InventorySlotId;
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;

// parameter for this case will be slot id, and if set, don't pull from the associated slot (used for CLES view)
if (playerId == -1)
{
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;
}
else
{
playerSlotId = playerId;
}
}

PlayerSlotDataView slotDataView = InventoryViewerViewModel.GetInstance().PlayerSlots.ElementAtOrDefault(playerSlotId);
Expand Down
11 changes: 10 additions & 1 deletion GES/Source/Mvvm/Converters/FFCC/ItemRefToIdConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ public Object Convert(Object value, Type targetType, Object parameter, CultureIn
if (rawCommandListEntry != null)
{
inventorySlot = rawCommandListEntry.InventorySlotId;
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;

// parameter for this case will be slot id, and if set, don't pull from the associated slot (used for CLES view)
if (playerId == -1)
{
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;
}
else
{
playerSlotId = playerId;
}
}

PlayerSlotDataView slotDataView = InventoryViewerViewModel.GetInstance().PlayerSlots.ElementAtOrDefault(playerSlotId);
Expand Down
11 changes: 10 additions & 1 deletion GES/Source/Mvvm/Converters/FFCC/ItemRefToNameConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,16 @@ public Object Convert(Object value, Type targetType, Object parameter, CultureIn
if (rawCommandListEntry != null)
{
inventorySlot = rawCommandListEntry.InventorySlotId;
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;

// parameter for this case will be slot id, and if set, don't pull from the associated slot (used for CLES view)
if (playerId == -1)
{
playerSlotId = rawCommandListEntry.Parent.PlayerIndex;
}
else
{
playerSlotId = playerId;
}
}

PlayerSlotDataView slotDataView = InventoryViewerViewModel.GetInstance().PlayerSlots.ElementAtOrDefault(playerSlotId);
Expand Down
Loading

0 comments on commit c0cf82e

Please sign in to comment.