Files
dusklight/include/f_pc/f_pc_profile.h
T
Pieter-Jan Briers 5d68762590 Add a *ton* of const and constexpr around the codebase. (#1864)
* 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
2026-05-27 23:12:16 -06:00

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