Skip to content

Commit

Permalink
LibDat2: Fix "array of enumrow" reading
Browse files Browse the repository at this point in the history
  • Loading branch information
aianlinb committed Aug 15, 2023
1 parent 7db5b0c commit 0bf8122
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LibDat2/LibDat2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<Authors>aianlinb</Authors>
<Copyright>Copyright © 2020-2023 aianlinb</Copyright>
<Version>0.16.1</Version>
<Version>0.16.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>embedded</DebugType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
2 changes: 2 additions & 0 deletions LibDat2/Types/IArrayData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public interface IArrayData : IReferenceData {
"u8" => ArrayData<byte>.Read(reader, dat, typeOfValue),
"u16" => ArrayData<ushort>.Read(reader, dat, typeOfValue),
"u32" => ArrayData<uint>.Read(reader, dat, typeOfValue),
"enumrow" => ArrayData<uint>.Read(reader, dat, typeOfValue),
"u64" => ArrayData<ulong>.Read(reader, dat, typeOfValue),
"f32" => ArrayData<float>.Read(reader, dat, typeOfValue),
"f64" => ArrayData<double>.Read(reader, dat, typeOfValue),
Expand Down Expand Up @@ -53,6 +54,7 @@ public interface IArrayData : IReferenceData {
"u8" => ArrayData<byte>.FromString(value, dat, typeOfValue),
"u16" => ArrayData<ushort>.FromString(value, dat, typeOfValue),
"u32" => ArrayData<uint>.FromString(value, dat, typeOfValue),
"enumrow" => ArrayData<uint>.FromString(value, dat, typeOfValue),
"u64" => ArrayData<ulong>.FromString(value, dat, typeOfValue),
"f32" => ArrayData<float>.FromString(value, dat, typeOfValue),
"f64" => ArrayData<double>.FromString(value, dat, typeOfValue),
Expand Down
2 changes: 1 addition & 1 deletion VisualGGPK2/VisualGGPK2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0-windows</TargetFramework>
<Authors>aianlinb</Authors>
<Copyright>Copyright © 2020-2023 aianlinb</Copyright>
<Version>0.16.1</Version>
<Version>0.16.2</Version>
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
Expand Down

0 comments on commit 0bf8122

Please sign in to comment.