Skip to content

Commit

Permalink
read i16 (scalars only)
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Nov 19, 2024
1 parent d598f0d commit 1c99b21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pathofexile-dat",
"version": "9.1.0",
"version": "9.2.0",
"type": "module",
"bin": "./dist/cli/run.js",
"exports": {
Expand All @@ -14,7 +14,7 @@
},
"dependencies": {
"ooz-wasm": "^2.0.0",
"pathofexile-dat-schema": "^4.0.0"
"pathofexile-dat-schema": "^5.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions lib/src/cli/export-tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function importHeaders (name: string, datFile: DatFile): NamedHeader[] {
// : column.type === 'u32' ? { unsigned: true, size: 4 }
// : column.type === 'u64' ? { unsigned: true, size: 8 }
// : column.type === 'i8' ? { unsigned: false, size: 1 }
// : column.type === 'i16' ? { unsigned: false, size: 2 }
column.type === 'i32' ? { unsigned: false, size: 4 }
column.type === 'i16' ? { unsigned: false, size: 2 }
: column.type === 'i32' ? { unsigned: false, size: 4 }
// : column.type === 'i64' ? { unsigned: false, size: 8 }
: column.type === 'enumrow' ? { unsigned: false, size: 4 }
: undefined,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dat-analysis/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void {

const module = b.addExecutable(.{
.name = "analysis",
.root_source_file = .{ .path = "./analysis.zig" },
.root_source_file = b.path("./analysis.zig"),
.target = target,
.optimize = optimize,
});
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dat-analysis/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function validateHeader (header: Header, columns: ColumnStats[]): boolean

if (integer) {
// if (size === 1 && !array) return space >= 1
// if (size === 2 && !array) return space >= 2
if (size === 2 && !array) return space >= 2
if (size === 4 && !array) return space >= 4
// if (size === 8 && !array) return space >= 8

Expand Down

0 comments on commit 1c99b21

Please sign in to comment.