mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
decompile window.s
This commit is contained in:
parent
6f03356237
commit
7daeebd3f4
1221
asm/window.s
1221
asm/window.s
File diff suppressed because it is too large
Load Diff
8
include/malloc.h
Normal file
8
include/malloc.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef GUARD_MALLOC_H
|
||||
#define GUARD_MALLOC_H
|
||||
|
||||
void *Alloc(u32 size);
|
||||
void *AllocZeroed(u32 size);
|
||||
void Free(void *pointer);
|
||||
|
||||
#endif // GUARD_MALLOC_H
|
@ -1,6 +1,20 @@
|
||||
#ifndef GUARD_WINDOW_H
|
||||
#define GUARD_WINDOW_H
|
||||
|
||||
#define WINDOWS_MAX 32
|
||||
|
||||
enum
|
||||
{
|
||||
WINDOW_PRIORITY,
|
||||
WINDOW_TILEMAP_LEFT,
|
||||
WINDOW_TILEMAP_TOP,
|
||||
WINDOW_WIDTH,
|
||||
WINDOW_HEIGHT,
|
||||
WINDOW_PALETTE_NUM,
|
||||
WINDOW_BASE_BLOCK,
|
||||
WINDOW_TILE_DATA
|
||||
};
|
||||
|
||||
struct WindowTemplate
|
||||
{
|
||||
u8 priority;
|
||||
@ -18,4 +32,6 @@ struct Window
|
||||
u8 *tileData;
|
||||
};
|
||||
|
||||
extern struct Window gWindows[WINDOWS_MAX];
|
||||
|
||||
#endif // GUARD_WINDOW_H
|
||||
|
@ -48,7 +48,6 @@ SECTIONS {
|
||||
asm/bg.o(.text);
|
||||
asm/blit.o(.text);
|
||||
src/window.o(.text);
|
||||
asm/window.o(.text);
|
||||
src/text.o(.text);
|
||||
asm/sprite.o(.text);
|
||||
src/string_util.o(.text);
|
||||
|
1003
src/window.c
1003
src/window.c
File diff suppressed because it is too large
Load Diff
@ -1,15 +1,9 @@
|
||||
gTrainerId: @ 2020000
|
||||
.space 0x4
|
||||
|
||||
gWindows: @ 2020004
|
||||
.space 0x180
|
||||
|
||||
gUnknown_02020184: @ 2020184
|
||||
.space 0x4
|
||||
|
||||
gUnknown_02020188: @ 2020188
|
||||
.space 0x4
|
||||
|
||||
.include "src/window.o"
|
||||
.align 2
|
||||
|
||||
gTempTextPrinter: @ 202018C
|
||||
.space 0x24
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user