Skip to content

Commit

Permalink
hoshino: Decompile h_debug.c
Browse files Browse the repository at this point in the history
  • Loading branch information
entriphy committed Jun 18, 2023
1 parent 6d6b554 commit 0bac72e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/hoshino.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ extern void hCdReadData(s32 no, s32 buff);
extern s32 hCdReadSync();
extern void hCdInit();
extern void hCdMain();
extern s32 hCdDiscStatOK();

// h_debug.c
extern void HsDeb2PtblInit();
extern void HsDeb2Ptbl();

// h_file.c
extern s32 hGameDataSize(s32 mode);
Expand Down
10 changes: 10 additions & 0 deletions src/hoshino/h_cdvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,13 @@ void hCdMain(void) {

cD->eeCnt++;
}

s32 hCdDiscStatOK() {
switch (cD->DiscError) {
case SCECdErNO:
case SCECdErABRT:
return 0;
default:
return 1;
}
}
9 changes: 9 additions & 0 deletions src/hoshino/h_debug.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "common.h"

void HsDeb2PtblInit() {
// Empty function
}

void HsDeb2Ptbl() {
// Empty function
}

0 comments on commit 0bac72e

Please sign in to comment.