Project modernization (#630)

* Fixed boats falling and a TP glitch #266

* Replaced every C-style cast with C++ ones

* Replaced every C-style cast with C++ ones

* Fixed boats falling and a TP glitch #266

* Updated NULL to nullptr and fixing some type issues

* Modernized and fixed a few bugs

- Replaced most instances of `NULL` with `nullptr`.
- Replaced most `shared_ptr(new ...)` with `make_shared`.
- Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances.

* Fixing more conflicts

* Replace int loops with size_t and start work on overrides
This commit is contained in:
ModMaker101
2026-03-07 21:56:03 -05:00
committed by GitHub
parent 1be5faaea7
commit a9be52c41a
1373 changed files with 19903 additions and 19449 deletions

View File

@@ -532,24 +532,24 @@ static unsigned char pshader_basic_17[436] = {
};
static ShaderCode pshader_basic_arr[18] = {
{ pshader_basic_0, { NULL } },
{ pshader_basic_1, { NULL } },
{ pshader_basic_2, { NULL } },
{ pshader_basic_3, { NULL } },
{ pshader_basic_4, { NULL } },
{ pshader_basic_5, { NULL } },
{ pshader_basic_6, { NULL } },
{ pshader_basic_7, { NULL } },
{ pshader_basic_8, { NULL } },
{ pshader_basic_9, { NULL } },
{ pshader_basic_10, { NULL } },
{ pshader_basic_11, { NULL } },
{ pshader_basic_12, { NULL } },
{ pshader_basic_13, { NULL } },
{ pshader_basic_14, { NULL } },
{ pshader_basic_15, { NULL } },
{ pshader_basic_16, { NULL } },
{ pshader_basic_17, { NULL } },
{ pshader_basic_0, { nullptr } },
{ pshader_basic_1, { nullptr } },
{ pshader_basic_2, { nullptr } },
{ pshader_basic_3, { nullptr } },
{ pshader_basic_4, { nullptr } },
{ pshader_basic_5, { nullptr } },
{ pshader_basic_6, { nullptr } },
{ pshader_basic_7, { nullptr } },
{ pshader_basic_8, { nullptr } },
{ pshader_basic_9, { nullptr } },
{ pshader_basic_10, { nullptr } },
{ pshader_basic_11, { nullptr } },
{ pshader_basic_12, { nullptr } },
{ pshader_basic_13, { nullptr } },
{ pshader_basic_14, { nullptr } },
{ pshader_basic_15, { nullptr } },
{ pshader_basic_16, { nullptr } },
{ pshader_basic_17, { nullptr } },
};
static unsigned char pshader_manual_clear_0[220] = {
@@ -570,7 +570,7 @@ static unsigned char pshader_manual_clear_0[220] = {
};
static ShaderCode pshader_manual_clear_arr[1] = {
{ pshader_manual_clear_0, { NULL } },
{ pshader_manual_clear_0, { nullptr } },
};
static unsigned char vshader_vspsp2_0[360] = {
@@ -664,9 +664,9 @@ static unsigned char vshader_vspsp2_2[336] = {
};
static ShaderCode vshader_vspsp2_arr[3] = {
{ vshader_vspsp2_0, { NULL } },
{ vshader_vspsp2_1, { NULL } },
{ vshader_vspsp2_2, { NULL } },
{ vshader_vspsp2_0, { nullptr } },
{ vshader_vspsp2_1, { nullptr } },
{ vshader_vspsp2_2, { nullptr } },
};
static unsigned char vshader_vspsp2_mask_0[304] = {
@@ -692,6 +692,6 @@ static unsigned char vshader_vspsp2_mask_0[304] = {
};
static ShaderCode vshader_vspsp2_mask_arr[1] = {
{ vshader_vspsp2_mask_0, { NULL } },
{ vshader_vspsp2_mask_0, { nullptr } },
};