Decompile osMotorProbe

This commit is contained in:
Ryan Dwyer
2021-03-25 19:11:08 +10:00
parent 34098d6f59
commit f47c37603f
15 changed files with 178 additions and 205 deletions
+8 -3
View File
@@ -106,8 +106,9 @@ typedef struct {
#define PFS_WRITE 1
#define PFS_CREATE 2
#define PFS_INITIALIZED 0x1
#define PFS_CORRUPTED 0x2
#define PFS_INITIALIZED 0x1
#define PFS_CORRUPTED 0x2
#define PFS_MOTOR_INITIALIZED 0x8
/**************************************************************************
*
@@ -150,12 +151,16 @@ typedef struct {
*
*/
extern s32 osPfsIsPlug(OSMesgQueue *, u8 *);
s32 osPfsIsPlug(OSMesgQueue *, u8 *);
s32 osPfsAllocateFile(OSPfs *pfs, u16 company_code, u32 game_code, char *game_name, char *ext_name, s32 num_bytes, s32 *file_no);
s32 osPfsFindFile(OSPfs *pfs, u16 company_code, u32 game_code, char *game_name, char *ext_name, s32 *file_no);
s32 osPfsDeleteFile(OSPfs *pfs, u16 company_code, u32 game_code, char *game_name, char *ext_name);
s32 osPfsFileState(OSPfs *pfs, s32 file_no, OSPfsState *state);
s32 osMotorAccess(OSPfs *pfs, u32 vibrate);
void osSetUpMempakWrite(s32 channel, OSPifRam* buf);
s32 osMotorProbe(OSMesgQueue *mq, OSPfs *pfs, s32 channel);
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
#ifdef _LANGUAGE_C_PLUS_PLUS
-14
View File
@@ -1,14 +0,0 @@
#ifndef _IN_LIB_LIB_4F5E0_H
#define _IN_LIB_LIB_4F5E0_H
#include <ultra64.h>
#include "data.h"
#include "types.h"
s32 osMotorAccess(OSPfs *pfs, u32 vibrate);
void osSetUpMempakWrite(s32 channel, OSPifRam* buf);
bool func0004f854(OSMesgQueue *mq, OSPfs *pfs, s32 arg2);
u32 func0004f9b0(void);
u32 func0004fbc0(void);
u32 func0004fbf0(void);
#endif
+11
View File
@@ -0,0 +1,11 @@
#ifndef _IN_LIB_LIB_4F9B0_H
#define _IN_LIB_LIB_4F9B0_H
#include <ultra64.h>
#include "data.h"
#include "types.h"
u32 func0004f9b0(void);
u32 func0004fbc0(void);
u32 func0004fbf0(void);
#endif