aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h
diff options
context:
space:
mode:
authorModMaker101 <119018978+ModMaker101@users.noreply.github.com>2026-03-08 19:08:36 -0400
committerGitHub <noreply@github.com>2026-03-08 18:08:36 -0500
commit28614b922fb77149a54da1a87bebfbc98736f296 (patch)
tree7f828ba86a4ee18d0a80d29de64f6199a5412512 /Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h
parent88798b501d0cf6287b6f87acb2592676e3cec58d (diff)
Modernize project codebase (#906)
* 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 * Add safety checks and fix a issue with vector going OOR
Diffstat (limited to 'Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h')
-rw-r--r--Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h b/Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h
index e8405d5e..b749a164 100644
--- a/Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h
+++ b/Minecraft.Client/Xbox/Sentient/Include/SenClientResource.h
@@ -45,10 +45,10 @@ namespace Sentient
enum SenResourceID : INT32
{
/// This is used to indicate a failed search, an invalid resource structure, or sometimes to substitute for a default.
- SenResourceID_Invalid = (INT32)SenResourceType_Invalid << 24,
+ SenResourceID_Invalid = static_cast<INT32>(SenResourceType_Invalid) << 24,
/// This is the first VIP reward costume and there is one for each title.
- SenResourceID_Superstar_0 = (INT32)SenResourceType_Avatar << 24,
+ SenResourceID_Superstar_0 = static_cast<INT32>(SenResourceType_Avatar) << 24,
/// This is the second VIP reward costume and there is one for each title.
SenResourceID_Superstar_1,
/// This is the third VIP reward costume and there is one for each title.
@@ -59,15 +59,15 @@ namespace Sentient
SenResourceID_Superstar_4,
/// This is used for the cross-sell screen and contains things such as an image, offerID, strings, etc.
- SenResourceID_BoxArt_0 = (INT32)SenResourceType_BoxArt << 24,
+ SenResourceID_BoxArt_0 = static_cast<INT32>(SenResourceType_BoxArt) << 24,
/// This is used for game-private config files, and is only the base of the range.
/// Titles may use the entire 24-bit space for various custom config files.
- SenResourceID_Config_0 = (INT32)SenResourceType_Config << 24,
+ SenResourceID_Config_0 = static_cast<INT32>(SenResourceType_Config) << 24,
/// This is used for server-supplied help files/text.
/// At the moment, this is not supported.
- SenResourceID_Help_0 = (INT32)SenResourceType_Help << 24,
+ SenResourceID_Help_0 = static_cast<INT32>(SenResourceType_Help) << 24,
};