mirror of
https://github.com/zeldaret/tp
synced 2026-08-22 06:44:53 -04:00
d_kankyo_wether / d_eye_hl (#178)
* d_eye_hl / d_kankyo_wether wip * more d_kankyo_wether + format * remove asm * some d_kankyo wip * fix dccs vtable * some m_Do_graphic / d_meter2_draw work
This commit is contained in:
@@ -263,6 +263,25 @@ inline void OSf32tou8(f32* f, u8* out) {
|
||||
*out = __OSf32tou8(*f);
|
||||
}
|
||||
|
||||
inline void OSInitFastCast(void) {
|
||||
// clang-format off
|
||||
asm {
|
||||
li r3, 4
|
||||
oris r3, r3, 4
|
||||
mtspr 0x392, r3
|
||||
li r3, 5
|
||||
oris r3, r3, 5
|
||||
mtspr 0x393, r3
|
||||
li r3, 6
|
||||
oris r3, r3, 6
|
||||
mtspr 0x394, r3
|
||||
li r3, 7
|
||||
oris r3, r3, 7
|
||||
mtspr 0x395, r3
|
||||
}
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
}; // extern "C"
|
||||
|
||||
void OSSwitchFiberEx(u32, u32, u32, u32, u32, u32);
|
||||
|
||||
@@ -8,12 +8,12 @@ struct OSSectionInfo {
|
||||
u32 mSize;
|
||||
};
|
||||
|
||||
struct OSModuleInfo {
|
||||
struct OSModuleInfo {
|
||||
u32 mId;
|
||||
OSModuleInfo* mNext;
|
||||
OSModuleInfo* mPrev;
|
||||
u32 mNumSections;
|
||||
struct { //Needed to get an assert correct; very likely bigger
|
||||
struct { // Needed to get an assert correct; very likely bigger
|
||||
u32 sectionInfoOffset;
|
||||
} info;
|
||||
u32 mModuleNameOffset;
|
||||
@@ -28,7 +28,7 @@ struct OSModuleInfo {
|
||||
u8 mUnresolvedSection;
|
||||
u8 mBssSection;
|
||||
u32 (*prolog)();
|
||||
void(*epilog)();
|
||||
void (*epilog)();
|
||||
u32 mUnresolvedFuncOffset;
|
||||
u32 mModuleAlignment;
|
||||
u32 mBssAlignment;
|
||||
@@ -36,7 +36,7 @@ struct OSModuleInfo {
|
||||
};
|
||||
|
||||
extern "C" BOOL OSLink(OSModuleInfo*);
|
||||
extern "C" BOOL OSLinkFixed(OSModuleInfo*,u32);
|
||||
extern "C" BOOL OSLinkFixed(OSModuleInfo*, u32);
|
||||
extern "C" BOOL OSUnlink(OSModuleInfo*);
|
||||
|
||||
#endif /* OSLINK_H */
|
||||
|
||||
Reference in New Issue
Block a user