Skip to content

Commit f59614a

Browse files
committed
Moved the static game variables to the lst files
1 parent 6a1bb7c commit f59614a

31 files changed

+1272
-400
lines changed

ttyd-tools/rel/include/commonfunctions.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ bool checkButtonComboEveryFrame(uint16_t combo);
1313
bool checkForSpecificSeq(ttyd::seqdrv::SeqIndex wantedSeq);
1414
bool checkIfInGame();
1515
void *getCurrentRELPointer();
16-
void *getBattlePointer();
16+
void *getBattleWorkPointer();
1717
void *getMarioBattlePointer();
1818
void *getPartnerBattlePointer();
1919
void *getActorPointer(uint32_t slot);
20+
void *getNPCFieldWorkPointer(uint32_t npcSlot);
2021
uint32_t secondsToFrames(uint32_t seconds);
2122
uint32_t getSequencePosition();
2223
void setSequencePosition(uint32_t value);
@@ -43,6 +44,7 @@ void setNewYoshiColorId(uint32_t colorId);
4344
bool checkIfBadgeEquipped(int16_t badge);
4445
void recheckJumpAndHammerLevels();
4546
uint32_t getCurrentPitFloor();
47+
uint32_t getCurrentFPS();
4648
void clearGSWFsRange(uint32_t lowerBound, uint32_t upperBound);
4749
void clear_DC_IC_Cache(void *ptr, uint32_t size);
4850
bool checkIfPointerIsValid(void *ptr);

ttyd-tools/rel/include/gc/os.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ struct HeapInfo
2020

2121
extern "C" {
2222

23-
extern HeapInfo *OSAlloc_HeapArray;
24-
extern int32_t OSAlloc_NumHeaps;
23+
extern HeapInfo *HeapArray;
24+
extern int32_t NumHeaps;
2525

2626
}
2727

ttyd-tools/rel/include/global.h

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -438,27 +438,6 @@ enum CUSTOM_BUTTON_IDS
438438
START,
439439
};
440440

441-
struct ItemData
442-
{
443-
const char* item_string_id; // Used for recipe lookups, etc.
444-
const char* item_name_msg;
445-
const char* item_desc_msg;
446-
const char* item_desc_menu_msg;
447-
uint16_t _unk_0x10;
448-
int16_t type_sort_order; // For "By Type" ordering
449-
int16_t buy_price;
450-
int16_t discount_price;
451-
int16_t star_piece_price;
452-
int16_t sell_price;
453-
int8_t bp_cost;
454-
int8_t hp_restored;
455-
int8_t fp_restored;
456-
uint8_t _unk_0x1f;
457-
int16_t icon_id;
458-
uint16_t _unk_0x22;
459-
void* attack_params;
460-
} __attribute__((__packed__));
461-
462441
struct Menus
463442
{
464443
uint8_t TotalMenuOptions;
@@ -721,29 +700,6 @@ extern int32_t MenuSecondaryValue;
721700
extern uint32_t MemoryWatchSecondaryValue;
722701
extern uint8_t FrameCounter;
723702

724-
extern uint32_t r13;
725-
extern char *NextBero;
726-
extern char *NextMap;
727-
extern char *NextArea;
728-
extern ItemData *ItemDataTable;
729-
extern uint8_t *GuardFrames;
730-
extern uint8_t *SuperguardFrames;
731-
extern uint32_t PauseMenuStartAddress;
732-
extern uint32_t wp_fadedrv_Address;
733-
extern uint32_t _mapEntAddress;
734-
extern uint32_t NPCAddressesStart;
735-
extern uint32_t BattleAddressesStart;
736-
extern uint32_t PiantaParlorAddressesStart;
737-
extern uint32_t seqMainAddress;
738-
extern uint32_t WorkAreaAddress;
739-
extern uint32_t SmartWorkAddress;
740-
extern uint32_t FieldItemsAddressesStart;
741-
extern uint32_t unkMapDataPtr;
742-
743-
extern uint32_t GlobalWorkPointer;
744-
extern uint32_t titleMainAddress;
745-
extern uint32_t ConsoleBusSpeedAddress;
746-
747703
extern bool ResetMarioProperties;
748704
extern int16_t ForcedNPCItemDrop;
749705
extern bool MarioFreeze;

0 commit comments

Comments
 (0)