mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-30 15:43:19 -04:00
a6e76c0841
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
/**
|
|
* f_op_scene_mng.cpp
|
|
* Framework - Scene Process Manager
|
|
*/
|
|
|
|
#include "f_op/f_op_scene_mng.h"
|
|
#include "f_op/f_op_scene_iter.h"
|
|
#include "f_op/f_op_scene_req.h"
|
|
|
|
scene_class* fopScnM_SearchByID(fpc_ProcID id) {
|
|
return (scene_class*)fopScnIt_Judge((fop_ScnItFunc)fpcSch_JudgeByID, &id);
|
|
}
|
|
|
|
static fpc_ProcID l_scnRqID = fpcM_ERROR_PROCESS_ID_e;
|
|
|
|
int fopScnM_ChangeReq(scene_class* i_scene, s16 i_procName, s16 param_3, u16 param_4) {
|
|
fpc_ProcID request_id = fopScnRq_Request(2, i_scene, i_procName, NULL, param_3, param_4);
|
|
if (request_id == fpcM_ERROR_PROCESS_ID_e) {
|
|
return 0;
|
|
}
|
|
|
|
l_scnRqID = request_id;
|
|
return 1;
|
|
}
|
|
|
|
fpc_ProcID fopScnM_DeleteReq(scene_class* i_scene) {
|
|
fpc_ProcID request_id = fopScnRq_Request(1, i_scene, 0x7FFF, NULL, 0x7FFF, 0);
|
|
return request_id != fpcM_ERROR_PROCESS_ID_e;
|
|
}
|
|
|
|
int fopScnM_CreateReq(s16 i_procName, s16 param_2, u16 param_3, u32 i_data) {
|
|
fpc_ProcID request_id = fopScnRq_Request(0, 0, i_procName, (void*)i_data, param_2, param_3);
|
|
return request_id != fpcM_ERROR_PROCESS_ID_e;
|
|
}
|
|
|
|
u32 fopScnM_ReRequest(s16 i_procName, u32 i_data) {
|
|
if (l_scnRqID == fpcM_ERROR_PROCESS_ID_e) {
|
|
return 0;
|
|
}
|
|
|
|
return fopScnRq_ReRequest(l_scnRqID, i_procName, (void*)i_data);
|
|
}
|
|
|
|
void fopScnM_Management() {
|
|
fopScnRq_Handler();
|
|
}
|
|
|
|
void fopScnM_Init() {}
|