charinfo-ex 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.2] - 2026-04-09
4
+
5
+ - Fix array loop having wrong value
6
+
3
7
  ## [0.0.1] - 2026-04-09
4
8
 
5
9
  - I made the thing.
Binary file
package/lib/CharInfoEx.js CHANGED
@@ -27,7 +27,7 @@ class CharInfoEx {
27
27
  var entryPositionCount = data.getUint32(exPosition, true);
28
28
  exPosition += 4;
29
29
  const charArray = [];
30
- for (let index = 0; index < 2; index++) {
30
+ for (let index = 0; index < entryPositionCount; index++) {
31
31
  const len = data.getUint32(exPosition, true);
32
32
  exPosition += 4;
33
33
  const charInfo = CharInfoEx.FromArrayBuffer(saveBuffer.slice(exPosition, exPosition + len));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "charinfo-ex",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Package for reading and writing Tomodachi Life character data",
5
5
  "main": "./lib/index.js",
6
6
  "scripts": {
package/src/CharInfoEx.ts CHANGED
@@ -34,7 +34,7 @@ export class CharInfoEx {
34
34
  exPosition += 4;
35
35
 
36
36
  const charArray: CharInfoEx[] = [];
37
- for (let index = 0; index < 2; index++) {
37
+ for (let index = 0; index < entryPositionCount; index++) {
38
38
  const len = data.getUint32(exPosition, true);
39
39
  exPosition += 4;
40
40
  const charInfo = CharInfoEx.FromArrayBuffer(saveBuffer.slice(exPosition, exPosition + len));
Binary file