mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 20:43:07 -04:00
dfa8efa97b
* 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
31 lines
567 B
C++
31 lines
567 B
C++
/**
|
|
* c_request.cpp
|
|
*
|
|
*/
|
|
|
|
#include "SSystem/SComponent/c_request.h"
|
|
|
|
int cReq_Is_Done(request_base_class* i_this) {
|
|
if (i_this->flag1 == 1) {
|
|
i_this->flag1 = 0;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
void cReq_Done(request_base_class* i_this) {
|
|
i_this->flag0 = 0;
|
|
i_this->flag1 = 1;
|
|
i_this->flag2 = 0;
|
|
}
|
|
|
|
void cReq_Command(request_base_class* i_this, u8 param_1) {
|
|
cReq_Create(i_this, param_1);
|
|
}
|
|
|
|
void cReq_Create(request_base_class* i_this, u8 param_1) {
|
|
i_this->flag0 = 1;
|
|
i_this->flag1 = 0;
|
|
i_this->flag2 = param_1;
|
|
}
|