Skip to content

Commit

Permalink
- Don't prompt for FlippyDrive update on development hardware.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Feb 15, 2025
1 parent c044acd commit a9a70f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions cube/swiss/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ void Initialise(void)
swissSettings.sramVideo = SYS_VIDEO_PAL;
else if(!strncmp(&IPLInfo[0x55], "MPAL", 4))
swissSettings.sramVideo = SYS_VIDEO_MPAL;
else if(!strncmp(&IPLInfo[0x55], "TDEV", 4) && (SYS_GetConsoleType() & SYS_CONSOLE_MASK) == SYS_CONSOLE_RETAIL)
*(u32*)0x8000002C += SYS_CONSOLE_TDEV_HW1 - SYS_CONSOLE_RETAIL_HW1;

*(u32*)0x800000CC = swissSettings.sramVideo;

GXRModeObj *vmode = getVideoMode();
Expand Down Expand Up @@ -102,9 +105,9 @@ void __SYS_PreInit(void)
}

if (((vu32 *)0xCC006000)[9] == 0xFF)
*(u32 *)0x8000002C = 0x1;
*(u32 *)0x8000002C = SYS_CONSOLE_RETAIL_HW1;
else
*(u32 *)0x8000002C = 0x10000004;
*(u32 *)0x8000002C = SYS_CONSOLE_DEVELOPMENT_HW1;

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

Expand Down Expand Up @@ -286,7 +289,7 @@ int main(int argc, char *argv[])
wait_press_A();
DrawDispose(msgBox);
}
else if(flippy_version < FLIPPY_VERSION(1,4,0)) {
else if(flippy_version < FLIPPY_VERSION(1,4,0) && (SYS_GetConsoleType() & SYS_CONSOLE_MASK) == SYS_CONSOLE_RETAIL) {
uiDrawObj_t *msgBox = DrawPublish(DrawMessageBox(D_INFO, "A firmware update is available.\nflippydrive.com/updates"));
wait_press_A();
DrawDispose(msgBox);
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/swiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ void load_app(ExecutableFile *fileToPatch)
print_gecko("Top of RAM simulated as: 0x%08X\r\n", topAddr);

*(vu32*)(VAR_AREA+0x0028) = 0x01800000;
*(vu32*)(VAR_AREA+0x002C) = swissSettings.debugUSB ? 0x10000004:0x00000001;
*(vu32*)(VAR_AREA+0x002C) = swissSettings.debugUSB ? SYS_CONSOLE_DEVELOPMENT_HW1 : SYS_CONSOLE_RETAIL_HW1;
*(vu32*)(VAR_AREA+0x002C) += ((vu32*)0xCC003000)[11] >> 28;
*(vu32*)(VAR_AREA+0x00CC) = swissSettings.sramVideo;
*(vu32*)(VAR_AREA+0x00D0) = 0x01000000;
Expand Down

0 comments on commit a9a70f9

Please sign in to comment.