mirror of
https://github.com/pret/pmd-red.git
synced 2026-06-13 12:10:49 -05:00
Add unused EWRAM_DATA variables
This commit is contained in:
parent
2ea69201da
commit
f9ea488e35
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
EWRAM_DATA Inputs gRealInputs = {0}; // 20255F0
|
||||
static EWRAM_DATA UnusedInputStruct sUnusedInputsRelated = {0}; // 2025600
|
||||
static EWRAM_DATA u32 sUnusedScrambledInputJunk = {0}; // 202562C
|
||||
static EWRAM_DATA u32 sUnusedScrambledInputJunk[3] = {0}; // 202562C
|
||||
static EWRAM_DATA Inputs sBufferedInputs = {0}; // 2025638
|
||||
static EWRAM_DATA Inputs sCurrentInputs = {0}; // 2025648
|
||||
static EWRAM_DATA Inputs sPrevInputs = {0}; // 2025658
|
||||
|
|
@ -22,7 +22,7 @@ void InitInput(void)
|
|||
sBufferedInputs.repeated = 0;
|
||||
sBufferedInputs.shortPress = 0;
|
||||
|
||||
sUnusedScrambledInputJunk = 0x4A14C1; // seems like random keyboard mashing (see UpdateInput)
|
||||
sUnusedScrambledInputJunk[0] = 0x4A14C1; // seems like random keyboard mashing (see UpdateInput)
|
||||
|
||||
sUnusedInputsRelated.unk20 = 0;
|
||||
sUnusedInputsRelated.unk0 = 0xFFFF; // probably a mask
|
||||
|
|
@ -201,5 +201,5 @@ void UpdateInput(void)
|
|||
sBufferedInputs.repeated |= sCurrentInputs.repeated;
|
||||
sBufferedInputs.shortPress |= sCurrentInputs.shortPress;
|
||||
|
||||
sUnusedScrambledInputJunk *= sCurrentInputs.held | 0x54A1C41; // very similar to odd constant in InitInput - probably keymashing
|
||||
sUnusedScrambledInputJunk[0] *= sCurrentInputs.held | 0x54A1C41; // very similar to odd constant in InitInput - probably keymashing
|
||||
}
|
||||
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
EWRAM_DATA struct HeapDescriptor *gHeapDescriptorList[8] = {0}; // 2000E88
|
||||
EWRAM_DATA u32 gHeapCount = {0}; // 2000EA8
|
||||
// space of 4?
|
||||
UNUSED static EWRAM_DATA u32 sUnused1 = {0}; // 2000EAC
|
||||
EWRAM_DATA struct HeapDescriptor gMainHeapDescriptor = {0}; // 2000EB0
|
||||
// space of 4?
|
||||
extern struct HeapFreeListElement gMainHeapFreeList[32]; // 2000ED0
|
||||
UNUSED static EWRAM_DATA u32 sUnused2 = {0}; // 2000ECC
|
||||
extern struct HeapFreeListElement gMainHeapFreeList[32]; // 2000ED0 (CAPACITY OR STRUCT SIZE IS WRONG)
|
||||
extern u8 gMainHeap[HEAP_SIZE]; // 20011D0
|
||||
|
||||
void InitHeapInternal(void);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "random.h"
|
||||
#include "sprite.h"
|
||||
|
||||
static EWRAM_DATA u16 sOAMSpriteCount = {0}; // Written to but never read
|
||||
static EWRAM_DATA u16 sOAMSpriteCount = {0}; // 2025670 Written to but never read
|
||||
#ifndef NONMATCHING
|
||||
UNUSED // TODO: Remove the "UNUSED" attribute after sub_8004EA8 is done
|
||||
#endif
|
||||
|
|
@ -14,12 +14,15 @@ UNUSED // TODO: Remove the "UNUSED" attribute after sub_8004EA8 is done
|
|||
static EWRAM_DATA s16 sUnknown_2025682[9] = {0};
|
||||
static EWRAM_DATA Position sUnknown_2025694 = {0};
|
||||
static EWRAM_DATA u32 sUnknown_2025698 = {0};
|
||||
UNUSED static EWRAM_DATA u32 sUnused1 = {0}; // 202569C
|
||||
static EWRAM_DATA SpriteList sUnknown_20256A0 = {0};
|
||||
static EWRAM_DATA UnkSpriteLink sUnknown_2025EA8[128] = {0};
|
||||
static EWRAM_DATA SpriteOAM sUnknown_20262A8[128] = {0};
|
||||
static EWRAM_DATA s32 sSpriteCount = {0}; // 20266A8
|
||||
UNUSED static EWRAM_DATA u32 sUnused2 = {0}; // 20266AC
|
||||
static EWRAM_DATA unkStruct_20266B0 sUnknown_20266B0[160] = {0};
|
||||
static EWRAM_DATA void *sCharMemCursor = {0}; // 2026E30
|
||||
UNUSED static EWRAM_DATA u32 sUnused3 = {0}; // 2026E34
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_20266B0 *sUnknown_203B074 = {0};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user