mirror of
https://github.com/zeldaret/tmc
synced 2026-09-02 10:11:36 -04:00
Merge pull request #167 from octorock/fix-format
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef CREATEOBJECT_H
|
||||
#define CREATEOBJECT_H
|
||||
|
||||
#include "entity.h"
|
||||
|
||||
// maybe a dedicated (create)Effect.h/c
|
||||
void CreateDust(Entity* parent);
|
||||
void CreateDustSmall(Entity* parent);
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ typedef struct {
|
||||
u8 textIndex;
|
||||
u8 filler[11];
|
||||
u16 pauseTime;
|
||||
u8 filler[2];
|
||||
u8 filler2[2];
|
||||
s32 targetX;
|
||||
s32 targetY;
|
||||
} CutsceneBehavior;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#ifndef ENEMY_H
|
||||
#define EMEMY_H
|
||||
#define ENEMY_H
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
#include "gba/types.h"
|
||||
|
||||
u32 CheckIsDungeon(void);
|
||||
|
||||
#endif // GAME_H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_GBA_EEPROM
|
||||
#define GUARD_GBA_EEPROM
|
||||
|
||||
#include "types.h"
|
||||
|
||||
// error codes
|
||||
#define EEPROM_OUT_OF_RANGE 0x80ff
|
||||
#define EEPROM_COMPARE_FAILED 0x8000
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_GBA_FLASH_INTERNAL_H
|
||||
#define GUARD_GBA_FLASH_INTERNAL_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define FLASH_BASE ((u8*)0xE000000)
|
||||
|
||||
#define FLASH_WRITE(addr, data) ((*(vu8*)(FLASH_BASE + (addr))) = (data))
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_GBA_MULTI_BOOT_H
|
||||
#define GUARD_GBA_MULTI_BOOT_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define MULTIBOOT_NCHILD 3 // Maximum number of slaves
|
||||
#define MULTIBOOT_HEADER_SIZE 0xc0 // Header size
|
||||
#define MULTIBOOT_SEND_SIZE_MIN 0x100 // Minimum transmission size
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_GBA_SYSCALL_H
|
||||
#define GUARD_GBA_SYSCALL_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define RESET_EWRAM 0x01
|
||||
#define RESET_IWRAM 0x02
|
||||
#define RESET_PALETTE 0x04
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef GREATFAIRY_H
|
||||
#define GREATFAIRY_H
|
||||
|
||||
#include "entity.h"
|
||||
#include "screen.h"
|
||||
|
||||
void GreatFairy_InitializeAnimation(Entity*);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
typedef struct { // 0x03001000
|
||||
u8 field_0x0;
|
||||
u8 field_0x1;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef RANDOM_H
|
||||
#define RANDOM_H
|
||||
|
||||
#include "gba/types.h"
|
||||
|
||||
extern u32 Random(void);
|
||||
|
||||
extern u32 gRand;
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#ifndef SCRIPT_H
|
||||
#define SCRIPT_H
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
typedef struct ScriptExecutionContext {
|
||||
u16* scriptInstructionPointer;
|
||||
|
||||
Reference in New Issue
Block a user