Skip to content

Commit

Permalink
- Adjust for libogc2 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Feb 21, 2025
1 parent 5193b65 commit 0d67aa7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
11 changes: 2 additions & 9 deletions cube/swiss/source/devices/aram/aram.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,8 @@ static bool __aram_Startup(DISC_INTERFACE *disc)
if (disc->ioType != DEVICE_TYPE_GAMECUBE_ARAM) return false;
if (initialized) return true;

if (!AR_CheckInit()) {
AR_Init(NULL, 0);
AR_Reset();
}

if (!ARQ_CheckInit()) {
ARQ_Init();
ARQ_Reset();
}
AR_Init(NULL, 0);
ARQ_Init();

initialized = true;
return true;
Expand Down
3 changes: 2 additions & 1 deletion cube/swiss/source/devices/flippydrive/flippy.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Extrems <[email protected]>
* Copyright (c) 2024-2025, Extrems <[email protected]>
*
* This file is part of Swiss.
*
Expand Down Expand Up @@ -835,6 +835,7 @@ flippyresult flippy_init(void)

if (initialized) return flippy_bypass(false);
DVD_Init();
DVD_Reset(DVD_RESETNONE);

if (DVD_Inquiry(&block, &driveinfo) < 0 || driveinfo.rel_date != 0x20220426)
return FLIPPY_RESULT_NOT_READY;
Expand Down
10 changes: 2 additions & 8 deletions cube/swiss/source/devices/system/deviceHandler-SYS.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,8 @@ bool is_rom_name(char* filename) {
}

s32 deviceHandler_SYS_init(file_handle* file) {
if(!AR_CheckInit()) {
AR_Init(NULL, 0);
AR_Reset();
}
if(!ARQ_CheckInit()) {
ARQ_Init();
ARQ_Reset();
}
AR_Init(NULL, 0);
ARQ_Init();

rom_sizes[ROM_ARAM] = AR_GetSize();
rom_sizes[ROM_ARAM_INTERNAL] = AR_GetInternalSize();
Expand Down
4 changes: 2 additions & 2 deletions cube/swiss/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ static void driveInfoCallback(s32 result, dvdcmdblk *block) {
void Initialise(void)
{
PAD_Init ();
DVD_Init();
DVD_Init();
DVD_Reset(DVD_RESETNONE);
DVD_InquiryAsync(&commandBlock, &driveInfo, driveInfoCallback);

// Disable IPL modchips to allow access to IPL ROM fonts
Expand Down Expand Up @@ -117,7 +118,6 @@ void __SYS_PreInit(void)

*(u32 *)0x8000002C += ((vu32 *)0xCC003000)[11] >> 28;

*(u32 *)0x800000F0 = 0x1800000;
*(u32 *)0x800000F8 = TB_BUS_CLOCK;
*(u32 *)0x800000FC = TB_CORE_CLOCK;

Expand Down

0 comments on commit 0d67aa7

Please sign in to comment.