Skip to content

Commit

Permalink
Merge pull request #5 from Drakansoul/fix-plugin
Browse files Browse the repository at this point in the history
fix selectItem signature
  • Loading branch information
Drakansoul authored Jul 9, 2024
2 parents d0dc907 + c41a758 commit ea51c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DisPlacePlugin/DisPlacePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void Initialize()

IsSaveLayoutHook = HookManager.Hook<UpdateLayoutDelegate>("40 53 48 83 ec 20 48 8b d9 48 8b 0d ?? ?? ?? ?? e8 ?? ?? ?? ?? 33 d2 48 8b c8 e8 ?? ?? ?? ?? 84 c0 75 ?? 38 83 ?? 01 00 00", IsSaveLayoutDetour);

SelectItemHook = HookManager.Hook<SelectItemDelegate>("E8 ?? ?? 00 00 48 8B CE E8 ?? ?? 00 00 48 8B ?? ?? ?? 48", SelectItemDetour);
SelectItemHook = HookManager.Hook<SelectItemDelegate>("48 85 D2 0F 84 49 09 00 00 53 41 56 48 83 EC 48 48 89 6C 24 60 48 8B DA 48 89 74 24 70 4C 8B F1", SelectItemDetour);

UpdateYardObjHook = HookManager.Hook<UpdateYardDelegate>("48 89 74 24 18 57 48 83 ec 20 b8 dc 02 00 00 0f b7 f2 ??", UpdateYardObj);

Expand Down Expand Up @@ -210,7 +210,7 @@ unsafe public static void SetItemPosition(HousingItem rowItem)
logHousingDetour = true;
ApplyChange = true;

//SelectItem(rowItem.ItemStruct);
SelectItem(rowItem.ItemStruct);

var thisItem = MemInstance.HousingStructure->ActiveItem;
if (thisItem == null) {
Expand Down

0 comments on commit ea51c5d

Please sign in to comment.