mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-30 16:59:49 -04:00
Set names for savebuffer and ortho functions
This commit is contained in:
+4
-4
@@ -161,10 +161,10 @@ extern bool g_CutsceneSkipRequested;
|
||||
extern f32 g_CutsceneCurTotalFrame60f;
|
||||
extern s16 g_SpawnPoints[];
|
||||
extern s32 g_NumSpawnPoints;
|
||||
extern s32 var8009de90;
|
||||
extern s32 var8009de94;
|
||||
extern s32 g_MenuProjectFromX;
|
||||
extern s32 g_MenuProjectFromY;
|
||||
extern s32 g_HolorayMinY;
|
||||
extern s32 g_HolorayMaxY;
|
||||
extern s32 g_HolorayProjectFromX;
|
||||
extern s32 g_HolorayProjectFromY;
|
||||
extern u8 g_MpSelectedPlayersForStats[MAX_PLAYERS];
|
||||
extern char g_CheatMarqueeString[];
|
||||
extern u8 *g_BlurBuffer;
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#define MAX_SHIELDHITS 20
|
||||
#define MAX_SQUADRONS 16
|
||||
#define MAX_TEAMS 8
|
||||
#define MAX_USERSTRING_LEN 10
|
||||
|
||||
#define NUM_BOTDIFFS 6
|
||||
#define NUM_CYCLEABLE_WEAPONS 45
|
||||
|
||||
@@ -4,23 +4,23 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
Gfx *func0f0d479c(Gfx *gdl);
|
||||
Gfx *func0f0d49c8(Gfx *gdl);
|
||||
Gfx *func0f0d4a3c(Gfx *gdl, s32 arg1);
|
||||
Gfx *func0f0d4c80(Gfx *gdl);
|
||||
Gfx *menugfx_draw_plane(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, u32 colour1, u32 colour2, s32 type);
|
||||
void savebuffer_or(struct savebuffer *buffer, u32 arg1, s32 arg2);
|
||||
Gfx *ortho_begin(Gfx *gdl);
|
||||
Gfx *ortho_end(Gfx *gdl);
|
||||
Gfx *ortho_holoray_begin(Gfx *gdl, s32 type);
|
||||
Gfx *ortho_holoray_end(Gfx *gdl);
|
||||
Gfx *ortho_draw_holoray(Gfx *gdl, s32 x1, s32 y1, s32 x2, s32 y2, u32 colour1, u32 colour2, s32 type);
|
||||
void savebuffer_write_bits(struct savebuffer *buffer, u32 arg1, s32 arg2);
|
||||
u32 savebuffer_read_bits(struct savebuffer *buffer, s32 offset);
|
||||
void savebuffer_clear(struct savebuffer *buffer);
|
||||
void func0f0d5484(struct savebuffer *buffer, u8 *data, u8 len);
|
||||
void func0f0d54c4(struct savebuffer *buffer);
|
||||
void savebuffer_reset(struct savebuffer *buffer);
|
||||
void savebuffer_prepare_string(struct savebuffer *buffer, u8 *data, u8 len);
|
||||
void savebuffer_print(struct savebuffer *buffer);
|
||||
void savebuffer_read_string(struct savebuffer *buffer, char *dst, bool addlinebreak);
|
||||
void func0f0d55a4(struct savebuffer *buffer, char *src);
|
||||
void func0f0d564c(u8 *data, char *dst, bool addlinebreak);
|
||||
void func0f0d5690(u8 *dst, char *buffer);
|
||||
void savebuffer_write_string(struct savebuffer *buffer, char *src);
|
||||
void savebuffer_bitstring_to_cstring(u8 *data, char *dst, bool addlinebreak);
|
||||
void savebuffer_cstring_to_bitstring(u8 *dst, char *buffer);
|
||||
void savebuffer_write_guid(struct savebuffer *buffer, struct fileguid *guid);
|
||||
void savebuffer_read_guid(struct savebuffer *buffer, struct fileguid *guid);
|
||||
void format_time(char *dst, s32 time60, s32 precision);
|
||||
void func0f0d5a7c(void);
|
||||
void ortho_reset(void);
|
||||
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -3936,7 +3936,7 @@ struct menu {
|
||||
};
|
||||
|
||||
struct gamefile {
|
||||
/*0x00*/ char name[11];
|
||||
/*0x00*/ char name[MAX_USERSTRING_LEN + 1];
|
||||
/*0x0b*/ u8 thumbnail : 5; // stage index of the image to show on file select screen
|
||||
/*0x0b*/ u8 autodifficulty : 3;
|
||||
/*0x0c*/ u8 autostageindex;
|
||||
@@ -3950,7 +3950,7 @@ struct gamefile {
|
||||
};
|
||||
|
||||
struct mpchrconfig {
|
||||
/*0x00*/ char name[15];
|
||||
/*0x00*/ char name[MAX_USERSTRING_LEN + 5];
|
||||
/*0x0f*/ u8 mpheadnum;
|
||||
/*0x10*/ u8 mpbodynum;
|
||||
/*0x11*/ u8 team;
|
||||
@@ -4024,7 +4024,7 @@ struct missionconfig {
|
||||
};
|
||||
|
||||
struct mpsetup {
|
||||
/*0x800acb88*/ char name[12];
|
||||
/*0x800acb88*/ char name[MAX_USERSTRING_LEN + 2];
|
||||
/*0x800acb94*/ u32 options;
|
||||
/*0x800acb98*/ u8 scenario;
|
||||
/*0x800acb99*/ u8 stagenum;
|
||||
@@ -4046,7 +4046,7 @@ struct mpsetup {
|
||||
};
|
||||
|
||||
struct bossfile {
|
||||
/*0x00*/ char teamnames[MAX_TEAMS][12];
|
||||
/*0x00*/ char teamnames[MAX_TEAMS][MAX_USERSTRING_LEN + 2];
|
||||
/*0x60*/ u8 locktype;
|
||||
/*0x61*/ u8 unk89;
|
||||
/*0x62*/ u8 usingmultipletunes;
|
||||
|
||||
Reference in New Issue
Block a user