Update decomp guide to use new res enum format

This commit is contained in:
LagoLunatic
2026-05-30 01:11:34 -04:00
parent 66356df1a6
commit 8ff73b8634
2 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -93,13 +93,13 @@ Explicitly casting from one type to another can affect regalloc. This applies to
Even the type of casting operator you use affects it in some cases. For example, this C-style cast:
```cpp
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(m_arcname, VBAKH_BDL_VBAKH);
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(m_arcname, dRes_INDEX_VBAKH_BDL_VBAKH_e);
```
Is functionally equivalent to this C++ static_cast:
```cpp
J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arcname, VBAKH_BDL_VBAKH));
J3DModelData* modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(m_arcname, dRes_INDEX_VBAKH_BDL_VBAKH_e));
```
But the two of them produce different regalloc.