src/core1: improvments and renamings on various files, added some header files
neue Datei: include/core1/eeprom.h neue Datei: include/core1/pfsmanager.h neue Datei: include/core1/ucode.h umbenannt: src/core1/code_18110.c -> src/core1/eeprom.c umbenannt: src/core1/code_10A00.c -> src/core1/pfsmanager.c umbenannt: src/core1/code_13640.c -> src/core1/stub_13640.c umbenannt: src/core1/code_1D590.c -> src/core1/stub_1D590.c umbenannt: src/core1/code_18210.c -> src/core1/ucode.c umbenannt: src/core1/code_EAF0.c -> src/core1/viewport.c
This commit is contained in:
9
include/core1/eeprom.h
Normal file
9
include/core1/eeprom.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef BANJO_KAZOOIE_EEPROM_H
|
||||
#define BANJO_KAZOOIE_EEPROM_H
|
||||
|
||||
#include <ultra64.h>
|
||||
|
||||
s32 eeprom_writeBlocks(s32 file, s32 offset, void *buffer, s32 count);
|
||||
s32 eeprom_readBlocks(s32 file, s32 offset, void *buffer, s32 count);
|
||||
|
||||
#endif
|
71
include/core1/pfsmanager.h
Normal file
71
include/core1/pfsmanager.h
Normal file
@@ -0,0 +1,71 @@
|
||||
#ifndef BANJO_KAZOOIE_PFSMANAGER_H
|
||||
#define BANJO_KAZOOIE_PFSMANAGER_H
|
||||
|
||||
#include <ultra64.h>
|
||||
#include "bool.h"
|
||||
|
||||
typedef struct pfs_manager_face_buttons_s {
|
||||
bool button_a;
|
||||
bool button_b;
|
||||
bool button_c_left;
|
||||
bool button_c_up;
|
||||
bool button_c_down;
|
||||
bool button_c_right;
|
||||
} PfsManagerFaceButtons;
|
||||
|
||||
typedef struct pfs_manager_side_buttons_s {
|
||||
bool button_z;
|
||||
bool button_l;
|
||||
bool button_r;
|
||||
};
|
||||
|
||||
typedef struct pfs_manager_controller_data {
|
||||
union { s32 face_button[6]; PfsManagerFaceButtons face_button2; };
|
||||
s32 side_button[3];
|
||||
s32 unk24[4];
|
||||
s32 start_button;
|
||||
} PfsManagerControllerData;
|
||||
|
||||
typedef struct {
|
||||
s16 unk0;
|
||||
s16 unk2;
|
||||
u16 unk4;
|
||||
u16 unk6;
|
||||
f32 unk8[2];
|
||||
f32 joystick[2];
|
||||
}Struct_core1_10A00_1;
|
||||
|
||||
f32 func_8024E420(s32 arg0, s32 arg1, s32 arg2);
|
||||
void pfsManager_getControllerFaceButtonState(s32 controller_index, s32 dst[6]);
|
||||
void pfsManager_getFirstControllerFaceButtonState(s32 controller_index, s32 dst[6]);
|
||||
s32 func_8024E5E8(s32 arg0, s32 arg1);
|
||||
s32 func_8024E60C(s32 controller_index, s32 dst[3]);
|
||||
s32 func_8024E640(s32 controller_index, s32 dst[3]);
|
||||
f32 func_8024E668(s32 controller_index);
|
||||
s32 controller_getStartButton(s32 controller_index);
|
||||
s32 func_8024E698(s32 controller_index);
|
||||
void func_8024E6E0(s32 controller_index, s32 *dst[4]);
|
||||
void controller_getJoystick(s32 controller_index, f32 dst[2]);
|
||||
void pfsManager_update(void);
|
||||
void pfsManager_readData();
|
||||
void pfsManager_entry(void *arg);
|
||||
void pfsManager_init(void);
|
||||
bool pfsManager_contErr(void);
|
||||
void func_8024F150(void);
|
||||
void func_8024F180(void);
|
||||
void pfsManager_getStartReadData(void);
|
||||
void func_8024F1F0(void);
|
||||
void func_8024F224(void);
|
||||
void func_8024F2E4(s32 arg0, Struct_core1_10A00_1 *arg1);
|
||||
void func_8024F328(s32 controller_index, s32 arg1);
|
||||
OSMesgQueue * pfsManager_getFrameReplyQ(void);
|
||||
OSMesgQueue *pfsManager_getFrameMesgQ(void);
|
||||
void func_8024F35C(s32 arg0);
|
||||
bool pfsManager_isBusy(void);
|
||||
int func_8024F3C4(int arg0);
|
||||
OSContPad *func_8024F3F4(void);
|
||||
void func_8024F400(void);
|
||||
void func_8024F450(void);
|
||||
void func_8024F4AC(void);
|
||||
|
||||
#endif
|
12
include/core1/ucode.h
Normal file
12
include/core1/ucode.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef BANJO_KAZOOIE_UCODE_H
|
||||
#define BANJO_KAZOOIE_UCODE_H
|
||||
|
||||
#include <ultra64.h>
|
||||
|
||||
void ucode_load(void);
|
||||
void ucode_stub1(void); // does nothing
|
||||
void ucode_stub2(void); // performs dummy read on PI
|
||||
s32 ucode_stub3(void); // returns always 0
|
||||
void ucode_getPtrAndSize(void **ptr, u32 *size);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user