diff --git a/lib/package.json b/lib/package.json index 89ebb80..b327049 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "pathofexile-dat", - "version": "9.1.0", + "version": "9.2.0", "type": "module", "bin": "./dist/cli/run.js", "exports": { @@ -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", diff --git a/lib/src/cli/export-tables.ts b/lib/src/cli/export-tables.ts index 7ea5268..f4fe8d3 100644 --- a/lib/src/cli/export-tables.ts +++ b/lib/src/cli/export-tables.ts @@ -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, diff --git a/lib/src/dat-analysis/build.zig b/lib/src/dat-analysis/build.zig index 143aef3..2d53d7b 100644 --- a/lib/src/dat-analysis/build.zig +++ b/lib/src/dat-analysis/build.zig @@ -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, }); diff --git a/lib/src/dat-analysis/validation.ts b/lib/src/dat-analysis/validation.ts index 441c79c..1432a30 100644 --- a/lib/src/dat-analysis/validation.ts +++ b/lib/src/dat-analysis/validation.ts @@ -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