mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 04:31:37 -04:00
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
This commit is contained in:
committed by
GitHub
parent
db39a9c7f3
commit
5d68762590
@@ -74,24 +74,24 @@ int daObjMGate_c::Create() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static char* l_arcName[] = {
|
||||
static DUSK_CONST char* l_arcName[] = {
|
||||
"M_IGate",
|
||||
"M_HGate",
|
||||
};
|
||||
|
||||
static char* l_bmdName[] = {
|
||||
static DUSK_CONST char* l_bmdName[] = {
|
||||
"M_IzumiGate.bmd",
|
||||
"M_HashiGate.bmd",
|
||||
};
|
||||
|
||||
static char* l_dzbName[] = {
|
||||
static DUSK_CONST char* l_dzbName[] = {
|
||||
"M_IzumiGate.dzb",
|
||||
"M_HashiGate.dzb",
|
||||
};
|
||||
|
||||
static char* l_keyArcName = "M_GateKey";
|
||||
static DUSK_CONST char* l_keyArcName = "M_GateKey";
|
||||
|
||||
static char* l_keyBmdName = "M_IGateKey.bmd";
|
||||
static DUSK_CONST char* l_keyBmdName = "M_IGateKey.bmd";
|
||||
|
||||
int daObjMGate_c::CreateHeap() {
|
||||
J3DModelData* modelData =
|
||||
@@ -235,13 +235,13 @@ static int daObjMGate_MoveBGDraw(daObjMGate_c* i_this) {
|
||||
return i_this->MoveBGDraw();
|
||||
}
|
||||
|
||||
static actor_method_class daObjMGate_METHODS = {
|
||||
static DUSK_CONST actor_method_class daObjMGate_METHODS = {
|
||||
(process_method_func)daObjMGate_create1st, (process_method_func)daObjMGate_MoveBGDelete,
|
||||
(process_method_func)daObjMGate_MoveBGExecute, (process_method_func)NULL,
|
||||
(process_method_func)daObjMGate_MoveBGDraw,
|
||||
};
|
||||
|
||||
actor_process_profile_definition g_profile_Obj_MGate = {
|
||||
DUSK_PROFILE actor_process_profile_definition DUSK_CONST g_profile_Obj_MGate = {
|
||||
/* Layer ID */ fpcLy_CURRENT_e,
|
||||
/* List ID */ 3,
|
||||
/* List Prio */ fpcPi_CURRENT_e,
|
||||
|
||||
Reference in New Issue
Block a user