Skip to content

Commit

Permalink
Fix "Print items" in EquipInventoryData
Browse files Browse the repository at this point in the history
  • Loading branch information
inuNorii committed Nov 14, 2024
1 parent 87deba2 commit 35dcf49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Supported version to v1.16.0
### Fixed
- Graphics header under OptionData
- "Print items" in EquipInventoryData

## [v1.16.1] - 2024-10-03
### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{$lua}
if syntaxcheck then return end
[ENABLE]
alloc(EquipInventoryDataIdx,$10)
registerSymbol(EquipInventoryDataIdx)

EquipInventoryDataIdx:
dd 00000000 // Idx
dd 00000000 // Inv
EquipInventoryDataIdx = allocateMemory(8, getAddress(process))

[DISABLE]
dealloc(EquipInventoryDataIdx)
unregisterSymbol(EquipInventoryDataIdx)
deAlloc(EquipInventoryDataIdx)
EquipInventoryDataIdx = nil
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ local inventoryList = readPointer(EquipInventoryData + 0x10 + keyOffset)
local inventoryNum = readInteger(EquipInventoryData + 0x18 + keyOffset)

local invName = {
[0] = "Player Inventory"
[1] = "Storage Chest"
[2] = "Key Items (Player Inventory)"
[0] = "Player Inventory",
[1] = "Storage Chest",
[2] = "Key Items (Player Inventory)",
[3] = "Key Items (Storage Chest)"
}

Expand Down

0 comments on commit 35dcf49

Please sign in to comment.