2024-02-17 01:04:22 +03:00
|
|
|
#ifndef SYS_H
|
|
|
|
#define SYS_H
|
|
|
|
|
|
|
|
#include "PR/xstdio.h"
|
|
|
|
#include "PR/controller.h"
|
2024-03-24 11:01:28 +03:00
|
|
|
#include <libultraship.h>
|
|
|
|
#include "math.h"
|
2024-02-17 01:04:22 +03:00
|
|
|
#include "libc/math.h"
|
2024-03-24 11:01:28 +03:00
|
|
|
#include "stdarg.h"
|
|
|
|
#include "stdbool.h"
|
|
|
|
#include "stdint.h"
|
|
|
|
#include "stddef.h"
|
|
|
|
#include "string.h"
|
2024-02-17 01:04:22 +03:00
|
|
|
#include "macros.h"
|
|
|
|
#include "sf64math.h"
|
|
|
|
#include "gfx.h"
|
|
|
|
#include "sf64thread.h"
|
|
|
|
#include "sf64save.h"
|
|
|
|
#include "buffers.h"
|
|
|
|
|
2024-02-20 21:01:42 +03:00
|
|
|
#define UNK_TYPE s32
|
|
|
|
|
2024-02-17 01:04:22 +03:00
|
|
|
typedef s32 (*CompareFunc)(void*, void*);
|
|
|
|
|
|
|
|
s32 Lib_vsPrintf(char* dst, const char* fmt, va_list args);
|
|
|
|
void Lib_vTable(s32 index, void (**table)(s32, s32), s32 arg0, s32 arg1);
|
|
|
|
void Lib_QuickSort(u8* first, u32 length, u32 size, CompareFunc cFunc);
|
2024-04-09 01:25:56 +03:00
|
|
|
void Lib_InitPerspective(Gfx** dList);
|
|
|
|
void Lib_InitOrtho(Gfx** dList);
|
2024-02-17 01:04:22 +03:00
|
|
|
void Lib_DmaRead(void* src, void* dst, s32 size);
|
|
|
|
void Lib_FillScreen(u8 setFill);
|
|
|
|
|
|
|
|
void Memory_FreeAll(void);
|
|
|
|
void* Memory_Allocate(s32);
|
|
|
|
|
2024-05-17 20:22:51 +03:00
|
|
|
OSPiHandle * osDriveRomInit(void);
|
2024-02-17 01:04:22 +03:00
|
|
|
void RdRam_CheckIPL3(void);
|
|
|
|
void Mio0_Decompress(void* header, u8* dst);
|
|
|
|
|
|
|
|
void Game_Initialize(void);
|
|
|
|
void Game_Update(void);
|
|
|
|
|
2024-08-12 17:58:54 +03:00
|
|
|
extern bool gShowReticles[];
|
2024-05-11 23:53:37 +03:00
|
|
|
extern bool D_game_800D2870;
|
2024-02-17 01:04:22 +03:00
|
|
|
|
2024-05-11 23:53:37 +03:00
|
|
|
extern f32 gNextVsViewScale;
|
|
|
|
extern f32 gVsViewScale;
|
2024-02-17 01:04:22 +03:00
|
|
|
extern s32 gPlayerInactive[4];
|
2024-05-11 23:53:37 +03:00
|
|
|
extern s32 gVsMenuSelection;
|
2024-04-16 02:38:19 +03:00
|
|
|
extern u8 gShowHud;
|
2024-04-23 05:51:20 +03:00
|
|
|
extern u16 gNextLevelPhase;
|
2024-02-17 01:04:22 +03:00
|
|
|
extern u16 gNextLevel;
|
|
|
|
extern u16 gNextGameState;
|
2024-05-11 23:53:37 +03:00
|
|
|
extern u16 gLastGameState;
|
2024-02-17 01:04:22 +03:00
|
|
|
extern u16 gBgColor;
|
|
|
|
extern u8 gBlurAlpha;
|
2024-04-23 05:51:20 +03:00
|
|
|
extern u8 gGameStandby;
|
2024-04-20 22:18:31 +03:00
|
|
|
extern f32 gFovY;
|
|
|
|
extern f32 gProjectNear;
|
|
|
|
extern f32 gProjectFar;
|
2024-02-17 01:04:22 +03:00
|
|
|
|
2024-04-23 05:51:20 +03:00
|
|
|
typedef enum OptionState {
|
|
|
|
OPTION_WAIT,
|
|
|
|
OPTION_SETUP,
|
|
|
|
OPTION_UPDATE
|
|
|
|
} OptionState;
|
2024-02-17 01:04:22 +03:00
|
|
|
|
|
|
|
#endif
|