mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Decomped GetItemCategoryVeneer
This commit is contained in:
parent
47e1556106
commit
29f6004ec5
|
|
@ -1,73 +1,30 @@
|
|||
#pragma once
|
||||
.public _02094C0C
|
||||
.public _02094C18
|
||||
.public _02094D0C
|
||||
.public _02094D20
|
||||
.public _02097F34
|
||||
.public _02097F50
|
||||
.public _02097F58
|
||||
.public _02097F68
|
||||
.public _02097F6C
|
||||
.public _02097F7C
|
||||
.public _02097F90
|
||||
.public _02097F9C
|
||||
.public _02097FAC
|
||||
.public _02097FB8
|
||||
.public _02097FC4
|
||||
.public _02097FE4
|
||||
.public _02098038
|
||||
.public _02098054
|
||||
.public _02098070
|
||||
.public _0209808C
|
||||
.public _0209809C
|
||||
.public _020980AC
|
||||
.public _020980B0
|
||||
.public _0209E7A6
|
||||
.public _020A18BC
|
||||
.public _020AF6C4
|
||||
.public _020AF6C8
|
||||
.public _020AFF88_EU
|
||||
.public AllInventoriesZInit
|
||||
.public AllKecleonShopsZInit
|
||||
.public AllocateTemp1024ByteBufferFromPool
|
||||
.public ARM9_UNKNOWN_TABLE__NA_2097FF8
|
||||
.public AVAILABLE_ITEMS_IN_GROUP_TABLE
|
||||
.public BAG_ITEMS
|
||||
.public BAG_ITEMS_PTR_MIRROR
|
||||
.public CopyBitsFrom
|
||||
.public CopyBitsTo
|
||||
.public DrawTextInWindow
|
||||
.public DUNGEON_RETURN_STATUS_TABLE
|
||||
.public DrawTextInWindow
|
||||
.public FormatMoveString
|
||||
.public GET_ITEM_NAME_FORMATTED_SPRINTF
|
||||
.public GetDungeonGroup
|
||||
.public GetDungeonResultString
|
||||
.public GetLanguage
|
||||
.public GetItemCategoryVeneer
|
||||
.public GetStringFromFileVeneer
|
||||
.public GetWindow
|
||||
.public HandleSir0Translation
|
||||
.public InitMoveCheckId
|
||||
.public ITEM_DATA_TABLE_PTRS
|
||||
.public ITEM_TABLES_PTRS_1
|
||||
.public LoadFileFromRom
|
||||
.public MemAlloc
|
||||
.public MemFree
|
||||
.public MONEY_QUANTITY_TABLE
|
||||
.public MultiplyByFixedPoint
|
||||
.public PointsToZero
|
||||
.public LoadItemPspi2n
|
||||
.public PreprocessString
|
||||
.public RandRangeSafe
|
||||
.public RescueInventoryZInit
|
||||
.public SetActiveInventoryToMain
|
||||
.public SpecialEpisodeInventoryZInit
|
||||
.public SpecialEpisodeKecleonShopZInit
|
||||
.public strcpy
|
||||
.public StringFromId
|
||||
.public strncpy
|
||||
.public _02094C0C
|
||||
.public _02094C18
|
||||
.public _0209E7A6
|
||||
.public sub_0200D670
|
||||
.public sub_0200FD38
|
||||
.public sub_0200FD3C
|
||||
.public sub_02010590
|
||||
.public sub_02011AB8
|
||||
.public sub_020238E0
|
||||
.public sub_020265A8
|
||||
.public sub_02050974
|
||||
.public sub_02050990
|
||||
.public sub_020509BC
|
||||
.public vsprintf
|
||||
.public ZInit8
|
||||
|
|
|
|||
53
asm/include/main_0200CAFC.inc
Normal file
53
asm/include/main_0200CAFC.inc
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#pragma once
|
||||
.public ARM9_UNKNOWN_TABLE__NA_2097FF8
|
||||
.public AVAILABLE_ITEMS_IN_GROUP_TABLE
|
||||
.public BAG_ITEMS_PTR_MIRROR
|
||||
.public CopyBitsFrom
|
||||
.public CopyBitsTo
|
||||
.public GET_ITEM_NAME_FORMATTED_SPRINTF
|
||||
.public GetDungeonGroup
|
||||
.public GetLanguage
|
||||
.public HandleSir0Translation
|
||||
.public ITEM_DATA_TABLE_PTRS
|
||||
.public ITEM_TABLES_PTRS_1
|
||||
.public LoadFileFromRom
|
||||
.public MONEY_QUANTITY_TABLE
|
||||
.public MemAlloc
|
||||
.public MemFree
|
||||
.public MultiplyByFixedPoint
|
||||
.public PointsToZero
|
||||
.public RandRangeSafe
|
||||
.public StringFromId
|
||||
.public ZInit8
|
||||
.public _02094D0C
|
||||
.public _02094D20
|
||||
.public _02097F34
|
||||
.public _02097F50
|
||||
.public _02097F58
|
||||
.public _02097F68
|
||||
.public _02097F6C
|
||||
.public _02097F7C
|
||||
.public _02097F90
|
||||
.public _02097F9C
|
||||
.public _02097FAC
|
||||
.public _02097FB8
|
||||
.public _02097FC4
|
||||
.public _02097FE4
|
||||
.public _02098038
|
||||
.public _02098054
|
||||
.public _02098070
|
||||
.public _0209808C
|
||||
.public _0209809C
|
||||
.public _020980AC
|
||||
.public _020980B0
|
||||
.public _020A18BC
|
||||
.public _020AF6C4
|
||||
.public _020AF6C8
|
||||
.public _020AFF88_EU
|
||||
.public strcpy
|
||||
.public strncpy
|
||||
.public sub_020238E0
|
||||
.public sub_02050974
|
||||
.public sub_02050990
|
||||
.public sub_020509BC
|
||||
.public vsprintf
|
||||
2877
asm/main_0200C4CC.s
2877
asm/main_0200C4CC.s
File diff suppressed because it is too large
Load Diff
2873
asm/main_0200CAFC.s
Normal file
2873
asm/main_0200CAFC.s
Normal file
File diff suppressed because it is too large
Load Diff
8
include/item_util.h
Normal file
8
include/item_util.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef PMDSKY_ITEM_UTIL_H
|
||||
#define PMDSKY_ITEM_UTIL_H
|
||||
|
||||
#include "item.h"
|
||||
|
||||
enum item_category GetItemCategoryVeneer(s16 index);
|
||||
|
||||
#endif //PMDSKY_ITEM_UTIL_H
|
||||
2
main.lsf
2
main.lsf
|
|
@ -21,6 +21,8 @@ Static main
|
|||
Object src/directory_file_mngr.o
|
||||
Object src/directory_file.o
|
||||
Object asm/main_0200C4CC.o
|
||||
Object src/item_util.o
|
||||
Object asm/main_0200CAFC.o
|
||||
Object src/main_0200ECFC.o
|
||||
Object asm/main_0200ED1C.o
|
||||
Object src/main_02025788.o
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "dungeon_capabilities_1.h"
|
||||
#include "dungeon_util_static.h"
|
||||
#include "item.h"
|
||||
#include "item_util.h"
|
||||
|
||||
#define NUM_POTENTIAL_ROCK_TARGETS 20
|
||||
|
||||
|
|
@ -18,7 +19,6 @@ extern void SetMonsterActionFields(struct action_data *action_pointer, u16 actio
|
|||
extern bool8 IqSkillIsEnabled(struct entity *pokemon, u8 iq_skill);
|
||||
extern const struct tile *GetTile(s32 x, s32 y);
|
||||
extern bool8 TestItemAiFlag(s16 id, s32 aiFlag);
|
||||
extern enum item_category GetItemCategoryVeneer(s16 index);
|
||||
extern void GetPossibleAiArcItemTargets(struct entity *pokemon, struct item *item, struct position potential_targets[], bool8 ignore_roll_chance);
|
||||
extern s32 GetDirectionTowardsPosition(struct position *origin_pos, struct position *target_pos);
|
||||
extern struct item *GetItemInfo(struct entity *entity);
|
||||
|
|
|
|||
8
src/item_util.c
Normal file
8
src/item_util.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "item_util.h"
|
||||
|
||||
extern enum item_category GetItemCategory(s16 index);
|
||||
|
||||
enum item_category GetItemCategoryVeneer(s16 index)
|
||||
{
|
||||
return GetItemCategory(index);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user