From 6ec124760fd90d586b6af7c0387c085d1d19db1e Mon Sep 17 00:00:00 2001 From: ekeeke Date: Sat, 23 Mar 2019 14:29:37 +0100 Subject: [PATCH] [Gamecube/Wii] fixed compilation errors/warnings with latest libogc (1.8.21) --- gx/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gx/main.c b/gx/main.c index 6d86fb3..750298e 100644 --- a/gx/main.c +++ b/gx/main.c @@ -3,7 +3,7 @@ * * Genesis Plus GX * - * Copyright Eke-Eke (2007-2014), based on original work from Softdev (2006) + * Copyright Eke-Eke (2007-2019), based on original work from Softdev (2006) * * Redistribution and use of this code or any derivative works are permitted * provided that the following conditions are met: @@ -49,11 +49,12 @@ #include "md_ntsc.h" #include +#include #ifdef HW_RVL #include +#include #include -extern bool sdio_Deinitialize(); extern void USBStorage_Deinitialize(); #endif @@ -318,9 +319,10 @@ void shutdown(void) /* shutdown all devices */ DI_Close(); - sdio_Deinitialize(); + __io_wiisd.shutdown(); USBStorage_Deinitialize(); MOUSE_Deinit(); + USB_Deinitialize(); #endif } @@ -550,7 +552,7 @@ int main (int argc, char *argv[]) #endif /* RESET button callback */ - SYS_SetResetCallback(Reset_cb); + SYS_SetResetCallback((resetcallback)Reset_cb); /* main emulation loop */ run_emulation();