mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-30 00:16:19 -04:00
5d68762590
* Add a *ton* of const and constexpr around the codebase. This makes the codebase compile without strings being cast to non-const char*. I also went through and added constexpr where appropriate for tons of static data. * Make process definitions const too Might as well
33 lines
985 B
C
33 lines
985 B
C
|
|
#ifndef F_PC_PROFILE_H_
|
|
#define F_PC_PROFILE_H_
|
|
|
|
#include <types.h>
|
|
#include "global.h"
|
|
|
|
// Putting const on these profiles make them have internal linkage. Make sure they're extern!
|
|
#define DUSK_PROFILE IF_DUSK(extern)
|
|
|
|
typedef struct nodedraw_method_class nodedraw_method_class;
|
|
typedef struct leafdraw_method_class leafdraw_method_class;
|
|
typedef struct process_method_class process_method_class;
|
|
|
|
typedef struct process_profile_definition {
|
|
/* 0x00 */ unsigned int layer_id;
|
|
/* 0x04 */ u16 list_id;
|
|
/* 0x06 */ u16 list_priority;
|
|
/* 0x08 */ s16 name;
|
|
/* 0x0C */ process_method_class DUSK_CONST* methods;
|
|
/* 0x10 */ u32 process_size;
|
|
/* 0x14 */ u32 unk_size;
|
|
/* 0x18 */ u32 parameters;
|
|
} process_profile_definition;
|
|
|
|
#define LAYER_DEFAULT (-2)
|
|
|
|
struct leaf_process_profile_definition;
|
|
process_profile_definition DUSK_CONST* fpcPf_Get(s16 i_profname);
|
|
extern process_profile_definition DUSK_CONST* DUSK_CONST* DUSK_CONST g_fpcPf_ProfileList_p;
|
|
|
|
#endif
|