mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-08 20:05:13 +01:00
fixed wii power-off, compatibility fixes for libfat 20081205
This commit is contained in:
parent
35530e0ee3
commit
3b6375670a
11
history.txt
11
history.txt
@ -1,11 +1,10 @@
|
||||
Genesis Plus for Gamecube
|
||||
------------------------------
|
||||
|
||||
CURRENT:
|
||||
---------
|
||||
|
||||
08/12/2008:
|
||||
-----------
|
||||
[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 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"
|
||||
@ -27,6 +26,7 @@ CURRENT:
|
||||
- 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 ;-)
|
||||
- minor bugfixes and menu tweaks
|
||||
- compiled with libogc 1.7.0
|
||||
|
||||
[NGC only]
|
||||
- added 480p support in menu
|
||||
@ -34,8 +34,7 @@ CURRENT:
|
||||
[Wii only]
|
||||
- implemented fast scrolling in menu using Wiimote D-PAD
|
||||
- added "Power" button support
|
||||
- improved SDCARD access speed (svpe's "read-ahead" patch)
|
||||
- compiled with libogc CVS: SDHC support, Wiimote shutdown button support
|
||||
- libogc 1.7.0 features (SDHC support , Wiimote shutdown button support)
|
||||
|
||||
|
||||
|
||||
|
@ -16,8 +16,9 @@
|
||||
#include "fileio.h"
|
||||
#include "history.h"
|
||||
#include "dvd.h"
|
||||
|
||||
#ifdef HW_RVL
|
||||
#include "di/di.h"
|
||||
#include <di/di.h>
|
||||
#endif
|
||||
|
||||
#define PAGESIZE 12
|
||||
|
@ -1108,20 +1108,6 @@ void MainMenu ()
|
||||
|
||||
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);
|
||||
if (genromsize && (crccheck != sram.crc)) strcpy (menutitle, "*** SRAM has been modified ***");
|
||||
else sprintf(menutitle, "%d FPS", FramesPerSecond);
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifdef HW_DOL
|
||||
#include "dvd.h"
|
||||
#else
|
||||
#include "di/di.h"
|
||||
#include <di/di.h>
|
||||
#endif
|
||||
|
||||
int Shutdown = 0;
|
||||
@ -144,11 +144,10 @@ int main (int argc, char *argv[])
|
||||
SYS_SetPowerCallback(Power_Off);
|
||||
#endif
|
||||
|
||||
/* Initialize SDCARD Interface (LibFAT) */
|
||||
/* Initialize FAT Interface */
|
||||
if (fatInitDefault() == true)
|
||||
{
|
||||
use_FAT = 1;
|
||||
fatEnableReadAhead (PI_DEFAULT, 6, 64);
|
||||
}
|
||||
|
||||
/* Default Config */
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#ifdef HW_RVL
|
||||
#include <wiiuse/wpad.h>
|
||||
#include <di/di.h>
|
||||
#endif
|
||||
|
||||
/* configurable keys */
|
||||
@ -739,7 +740,20 @@ void ogc_input__config(u8 num, u8 type, u8 padtype)
|
||||
|
||||
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();
|
||||
|
||||
/* get gamepad inputs */
|
||||
|
Loading…
Reference in New Issue
Block a user