fixed wii power-off, compatibility fixes for libfat 20081205

This commit is contained in:
ekeeke31 2008-12-08 11:24:04 +00:00
parent 35530e0ee3
commit 3b6375670a
5 changed files with 24 additions and 25 deletions

View File

@ -1,11 +1,10 @@
Genesis Plus for Gamecube Genesis Plus for Gamecube
------------------------------ ------------------------------
CURRENT: 08/12/2008:
--------- -----------
[Genesis] [Genesis]
- YM2612(MAME): - YM2612 bugfixes (MAME core):
.fixed EG Decay->Substain transition when SL & DR are minimals: fix tracks #3 and #9 in "Mega Turrican" .fixed EG Decay->Substain transition when SL & DR are minimals: fix tracks #3 and #9 in "Mega Turrican"
.fixed a bug in SSG-EG emulation code: fix Level 1 music in "Alisia Dragoon" .fixed a bug in SSG-EG emulation code: fix Level 1 music in "Alisia Dragoon"
.modified SSG-EG Decay End Level: fix some sound effects (ChainSaw, Zap...) in "Beavis & Butthead" .modified SSG-EG Decay End Level: fix some sound effects (ChainSaw, Zap...) in "Beavis & Butthead"
@ -27,6 +26,7 @@ CURRENT:
- removed embedded font, (re)enabled IPL font support: now should works for Qoob users too (thanks to emukiddid) - removed embedded font, (re)enabled IPL font support: now should works for Qoob users too (thanks to emukiddid)
- fixed "Reset" button behavior, now acts more like Genesis Reset button ;-) - fixed "Reset" button behavior, now acts more like Genesis Reset button ;-)
- minor bugfixes and menu tweaks - minor bugfixes and menu tweaks
- compiled with libogc 1.7.0
[NGC only] [NGC only]
- added 480p support in menu - added 480p support in menu
@ -34,8 +34,7 @@ CURRENT:
[Wii only] [Wii only]
- implemented fast scrolling in menu using Wiimote D-PAD - implemented fast scrolling in menu using Wiimote D-PAD
- added "Power" button support - added "Power" button support
- improved SDCARD access speed (svpe's "read-ahead" patch) - libogc 1.7.0 features (SDHC support , Wiimote shutdown button support)
- compiled with libogc CVS: SDHC support, Wiimote shutdown button support

View File

@ -16,8 +16,9 @@
#include "fileio.h" #include "fileio.h"
#include "history.h" #include "history.h"
#include "dvd.h" #include "dvd.h"
#ifdef HW_RVL #ifdef HW_RVL
#include "di/di.h" #include <di/di.h>
#endif #endif
#define PAGESIZE 12 #define PAGESIZE 12

View File

@ -1108,20 +1108,6 @@ void MainMenu ()
while (quit == 0) while (quit == 0)
{ {
#ifdef HW_RVL
/* wii shutdown */
if (Shutdown)
{
/* autosave SRAM/State */
memfile_autosave();
/* shutdown Wii */
DI_Close();
SYS_ResetSystem(SYS_POWEROFF, 0, 0);
}
#endif
crccheck = crc32 (0, &sram.sram[0], 0x10000); crccheck = crc32 (0, &sram.sram[0], 0x10000);
if (genromsize && (crccheck != sram.crc)) strcpy (menutitle, "*** SRAM has been modified ***"); if (genromsize && (crccheck != sram.crc)) strcpy (menutitle, "*** SRAM has been modified ***");
else sprintf(menutitle, "%d FPS", FramesPerSecond); else sprintf(menutitle, "%d FPS", FramesPerSecond);

View File

@ -25,7 +25,7 @@
#ifdef HW_DOL #ifdef HW_DOL
#include "dvd.h" #include "dvd.h"
#else #else
#include "di/di.h" #include <di/di.h>
#endif #endif
int Shutdown = 0; int Shutdown = 0;
@ -144,11 +144,10 @@ int main (int argc, char *argv[])
SYS_SetPowerCallback(Power_Off); SYS_SetPowerCallback(Power_Off);
#endif #endif
/* Initialize SDCARD Interface (LibFAT) */ /* Initialize FAT Interface */
if (fatInitDefault() == true) if (fatInitDefault() == true)
{ {
use_FAT = 1; use_FAT = 1;
fatEnableReadAhead (PI_DEFAULT, 6, 64);
} }
/* Default Config */ /* Default Config */

View File

@ -24,6 +24,7 @@
#ifdef HW_RVL #ifdef HW_RVL
#include <wiiuse/wpad.h> #include <wiiuse/wpad.h>
#include <di/di.h>
#endif #endif
/* configurable keys */ /* configurable keys */
@ -739,7 +740,20 @@ void ogc_input__config(u8 num, u8 type, u8 padtype)
u16 ogc_input__getMenuButtons(void) u16 ogc_input__getMenuButtons(void)
{ {
/* slowdown input updates */
#ifdef HW_RVL
if (Shutdown)
{
/* autosave SRAM/State */
memfile_autosave();
/* shutdown Wii */
DI_Close();
SYS_ResetSystem(SYS_POWEROFF, 0, 0);
}
#endif
/* slowdown input updates */
VIDEO_WaitVSync(); VIDEO_WaitVSync();
/* get gamepad inputs */ /* get gamepad inputs */