Skip to content

Commit

Permalink
viewer i16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Nov 19, 2024
1 parent 8731fca commit 8ba6932
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"file-saver": "^2.0.2",
"idb": "^7.0.0",
"pathofexile-dat": "^9.0.0",
"pathofexile-dat-schema": "^4.0.0",
"pathofexile-dat-schema": "^5.0.0",
"string-metric": "^0.3.3",
"tailwindcss": "^3.0.0",
"vue": "^3.2.16"
Expand Down
2 changes: 1 addition & 1 deletion viewer/src/app/dat-viewer/components/HeaderProps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function dataTypeOpts (header: Header, stats: ColumnStats, datFile: DatFile) {
if (len === fieldSize.KEY_FOREIGN && stats.keyForeign) {
opts.push({ label: 'Key (foreign)', value: 'key_foreign' })
}
if (/* len === 8 || */ len === 4 /* || len === 2 || len === 1 */) {
if (/* len === 8 || */ len === 4 || len === 2 /* || len === 1 */) {
opts.push({ label: 'Integer', value: 'integer' })
}
if (/* len === 8 || */ len === 4) {
Expand Down
4 changes: 2 additions & 2 deletions viewer/src/app/dat-viewer/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ function fromPublicSchema (name: string, publicSchema: SchemaFile['tables']): Da
// : 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

0 comments on commit 8ba6932

Please sign in to comment.