mirror of
https://github.com/zeldaret/botw
synced 2026-06-03 10:31:20 -04:00
Add PauseMenuDataMgr::x_28 (#87)
This commit is contained in:
@@ -2773,4 +2773,13 @@ void PauseMenuDataMgr::unequip(PouchItem* item) {
|
||||
item->mEquipped = false;
|
||||
saveToGameData(mItemLists.list1);
|
||||
}
|
||||
|
||||
// FIXME: types
|
||||
bool PauseMenuDataMgr::useItemFromRecipeAndSave(void* unk, int multiplier, PouchItem* item) {
|
||||
auto lock = sead::makeScopedLock(mCritSection);
|
||||
useItemFromRecipe(&mItemLists, unk, multiplier, item);
|
||||
saveToGameData(mItemLists.list1);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace uking::ui
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <basis/seadTypes.h>
|
||||
#include <container/seadBuffer.h>
|
||||
#include <container/seadListImpl.h>
|
||||
#include <container/seadObjArray.h>
|
||||
#include <container/seadOffsetList.h>
|
||||
@@ -366,6 +367,9 @@ public:
|
||||
void equipWeapon(PouchItem* weapon);
|
||||
void unequip(PouchItem* item);
|
||||
|
||||
// FIXME: types
|
||||
bool useItemFromRecipeAndSave(void* unk, int multiplier, PouchItem* item);
|
||||
|
||||
private:
|
||||
// TODO: rename
|
||||
struct GrabbedItemInfo {
|
||||
@@ -400,6 +404,9 @@ private:
|
||||
sead::OffsetList<PouchItem>& getItems() { return mItemLists.list1; }
|
||||
const sead::OffsetList<PouchItem>& getItems() const { return mItemLists.list1; }
|
||||
|
||||
// FIXME: types
|
||||
bool useItemFromRecipe(Lists* lists, void* unk, int multiplier, PouchItem* item);
|
||||
|
||||
PouchItem* getItemHead(PouchCategory category) const {
|
||||
auto* p_head = mListHeads[u32(category)];
|
||||
if (!p_head)
|
||||
|
||||
Reference in New Issue
Block a user