diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-11-22 16:25:28 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-11-22 16:25:28 -0500 |
| commit | 469f243030912e02c7783384d5bfa58f432acabe (patch) | |
| tree | ba349c3fb13412c4474798007e264b796aa60a2d /src/f_pc/f_pc_stdcreate_req.cpp | |
| parent | 906c8a8314eb7ee29921cd9947c9a765ae33e026 (diff) | |
Process IDs cleanup
* Use fpcM_ERROR_PROCESS_ID_e enum instead of literal -1/0xFFFFFFFF everywhere
* Disambiguate variable names by using itemNo/msgNo instead of itemID/msgID
Diffstat (limited to 'src/f_pc/f_pc_stdcreate_req.cpp')
| -rw-r--r-- | src/f_pc/f_pc_stdcreate_req.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/f_pc/f_pc_stdcreate_req.cpp b/src/f_pc/f_pc_stdcreate_req.cpp index a41f6e16..65e4a03b 100644 --- a/src/f_pc/f_pc_stdcreate_req.cpp +++ b/src/f_pc/f_pc_stdcreate_req.cpp @@ -6,6 +6,7 @@ #include "f_pc/f_pc_stdcreate_req.h" #include "f_pc/f_pc_load.h" #include "f_pc/f_pc_node.h" +#include "f_pc/f_pc_manager.h" /* 80040648-8004069C .text fpcSCtRq_phase_Load__FP29standard_create_request_class */ s32 fpcSCtRq_phase_Load(standard_create_request_class* i_SCtReq) { @@ -110,11 +111,11 @@ s32 fpcSCtRq_Request(layer_class* i_layer, s16 i_procName, stdCreateFunc i_creat }; if (i_procName >= 0x7FFF) { - return -1; + return fpcM_ERROR_PROCESS_ID_e; } else { standard_create_request_class* request = (standard_create_request_class*)fpcCtRq_Create(i_layer, sizeof(standard_create_request_class), &submethod); if (request == NULL) { - return -1; + return fpcM_ERROR_PROCESS_ID_e; } else { cPhs_Set(&request->mPhase, method); request->mProcName = i_procName; |
