Skip to content

Commit

Permalink
implement sceCdNoticeGameStart
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 5, 2025
1 parent 4923cd5 commit 7b1c791
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion embed.make
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ $(EE_ASM_DIR)ps2ip_irx.s: $(PS2SDK)/iop/irx/ps2ip.irx | $(EE_ASM_DIR)
$(EE_ASM_DIR)udptty.s: $(PS2SDK)/iop/irx/udptty.irx | $(EE_ASM_DIR)
$(BIN2S) $< $@ udptty_irx

$(EE_ASM_DIR)ps2smap_irx.s: $(PS2DEV)/ps2eth/smap/ps2smap.irx | $(EE_ASM_DIR)
$(EE_ASM_DIR)ps2smap_irx.s: iop/__precompiled/ps2smap.irx | $(EE_ASM_DIR)
$(BIN2S) $< $@ ps2smap_irx

$(EE_ASM_DIR)ps2ftpd_irx.s: iop/ps2ftpd.irx | $(EE_ASM_DIR)
Expand Down
Binary file added iop/__precompiled/ps2smap.irx
Binary file not shown.
4 changes: 0 additions & 4 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ enum {
#ifdef CUSTOM_COLORS
DEF_COLOR1 = GS_SETREG_RGBA(0, 0, 0, 0), //Backgr
DEF_COLOR2 = GS_SETREG_RGBA(160, 160, 160, 0), //Frame
#ifdef DVRP
DEF_COLOR3 = GS_SETREG_RGBA(0x7a, 0, 0xbe, 0),
#else
DEF_COLOR3 = GS_SETREG_RGBA(0, 204, 255, 0), //Select
#endif
DEF_COLOR4 = GS_SETREG_RGBA(255, 255, 255, 0), //Text
DEF_COLOR5 = GS_SETREG_RGBA(255, 255, 0, 0), //Graph1
DEF_COLOR6 = GS_SETREG_RGBA(0, 255, 0, 0), //Graph2
Expand Down
21 changes: 20 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,14 +1545,33 @@ void loadFlashModules(void)
//---------------------------------------------------------------------------
#endif
#ifdef DVRP
int sceCdNoticeGameStart(u8 arg1, u32 *result)
{
int res;
u8 out[16];
u8 in[16];

if (result) {
*result = 0;
}
{
in[0] = arg1;
res = sceCdApplySCmd(0x29u, in, 1, out, sizeof(out));
if (result) {
*result = (u8)out[0];
}
}
return res;
}

void loadDVRPHddModules(void)
{
if (!have_DVRP_HDD_modules) {
if (!is_early_init) //Do not draw any text before the UI is initialized.
drawMsg(LNG(Loading_HDD_Modules));
setupPowerOff();
load_ps2dvr();
//sceCdNoticeGameStart(0, NULL); //shouldn't this be done by the bootloader?
sceCdNoticeGameStart(0, NULL); //shouldn't this be done by the bootloader?
have_DVRP_HDD_modules = TRUE;
}
}
Expand Down

0 comments on commit 7b1c791

Please sign in to comment.