mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-02-02 21:22:43 +01:00
finalize 4.3.1
This commit is contained in:
parent
2e16966bbb
commit
8bd9b8aedc
@ -2,8 +2,8 @@
|
|||||||
<app version="1">
|
<app version="1">
|
||||||
<name>Snes9x GX</name>
|
<name>Snes9x GX</name>
|
||||||
<coder>Tantric</coder>
|
<coder>Tantric</coder>
|
||||||
<version>4.3.0</version>
|
<version>4.3.1</version>
|
||||||
<release_date>20120706</release_date>
|
<release_date>20120707</release_date>
|
||||||
<short_description>Super Nintendo Emulator</short_description>
|
<short_description>Super Nintendo Emulator</short_description>
|
||||||
<long_description>A port of Snes9x to the Wii.</long_description>
|
<long_description>A port of Snes9x to the Wii.</long_description>
|
||||||
<ahb_access />
|
<ahb_access />
|
||||||
|
@ -43,6 +43,10 @@ Wii homebrew is WiiBrew (www.wiibrew.org).
|
|||||||
| UPDATE HISTORY |
|
| UPDATE HISTORY |
|
||||||
•˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————•
|
•˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————•
|
||||||
|
|
||||||
|
[4.3.1 - July 7, 2012]
|
||||||
|
|
||||||
|
* Fixed PAL support
|
||||||
|
|
||||||
[4.3.0 - July 6, 2012]
|
[4.3.0 - July 6, 2012]
|
||||||
|
|
||||||
* Support for newer Wiimotes
|
* Support for newer Wiimotes
|
||||||
|
@ -244,8 +244,6 @@ SetupPads()
|
|||||||
PAD_Init();
|
PAD_Init();
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
WPAD_Init();
|
|
||||||
|
|
||||||
// read wiimote accelerometer and IR data
|
// read wiimote accelerometer and IR data
|
||||||
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
|
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
|
||||||
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
|
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
|
||||||
|
@ -262,11 +262,13 @@ static mutex_t gecko_mutex = 0;
|
|||||||
|
|
||||||
static ssize_t __out_write(struct _reent *r, int fd, const char *ptr, size_t len)
|
static ssize_t __out_write(struct _reent *r, int fd, const char *ptr, size_t len)
|
||||||
{
|
{
|
||||||
u32 level;
|
if (!gecko || len == 0)
|
||||||
|
return len;
|
||||||
if (!ptr || len <= 0 || !gecko)
|
|
||||||
|
if(!ptr || len < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
u32 level;
|
||||||
LWP_MutexLock(gecko_mutex);
|
LWP_MutexLock(gecko_mutex);
|
||||||
level = IRQ_Disable();
|
level = IRQ_Disable();
|
||||||
usb_sendbuffer(1, ptr, len);
|
usb_sendbuffer(1, ptr, len);
|
||||||
@ -298,19 +300,23 @@ const devoptab_t gecko_out = {
|
|||||||
NULL // device statvfs_r
|
NULL // device statvfs_r
|
||||||
};
|
};
|
||||||
|
|
||||||
void USBGeckoOutput()
|
static void USBGeckoOutput()
|
||||||
{
|
{
|
||||||
LWP_MutexInit(&gecko_mutex, false);
|
|
||||||
gecko = usb_isgeckoalive(1);
|
gecko = usb_isgeckoalive(1);
|
||||||
|
LWP_MutexInit(&gecko_mutex, false);
|
||||||
|
|
||||||
devoptab_list[STD_OUT] = &gecko_out;
|
devoptab_list[STD_OUT] = &gecko_out;
|
||||||
devoptab_list[STD_ERR] = &gecko_out;
|
devoptab_list[STD_ERR] = &gecko_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
extern "C" {
|
||||||
main(int argc, char *argv[])
|
s32 __STM_Close();
|
||||||
|
s32 __STM_Init();
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
L2Enhance();
|
L2Enhance();
|
||||||
|
|
||||||
u32 ios = IOS_GetVersion();
|
u32 ios = IOS_GetVersion();
|
||||||
@ -322,43 +328,44 @@ main(int argc, char *argv[])
|
|||||||
if(SupportedIOS(preferred))
|
if(SupportedIOS(preferred))
|
||||||
IOS_ReloadIOS(preferred);
|
IOS_ReloadIOS(preferred);
|
||||||
}
|
}
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
//USBGeckoOutput(); // uncomment to enable USB gecko output
|
|
||||||
__exception_setreload(8);
|
|
||||||
|
|
||||||
#ifdef HW_DOL
|
|
||||||
ipl_set_config(6); // disable Qoob modchip
|
ipl_set_config(6); // disable Qoob modchip
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
USBGeckoOutput();
|
||||||
|
__exception_setreload(8);
|
||||||
|
|
||||||
#ifdef HW_RVL
|
|
||||||
StartNetworkThread();
|
|
||||||
DI_Init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
InitDeviceThread();
|
|
||||||
InitGCVideo(); // Initialise video
|
InitGCVideo(); // Initialise video
|
||||||
ResetVideo_Menu (); // change to menu video mode
|
ResetVideo_Menu (); // change to menu video mode
|
||||||
SetupPads();
|
|
||||||
MountAllFAT(); // Initialize libFAT for SD and USB
|
|
||||||
#ifdef HW_RVL
|
|
||||||
InitMem2Manager();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Initialize DVD subsystem (GameCube only)
|
|
||||||
#ifdef HW_DOL
|
|
||||||
DVD_Init ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
// Wii Power/Reset buttons
|
// Wii Power/Reset buttons
|
||||||
WPAD_SetPowerButtonCallback((WPADShutdownCallback)ShutdownCB);
|
__STM_Close();
|
||||||
|
__STM_Init();
|
||||||
|
__STM_Close();
|
||||||
|
__STM_Init();
|
||||||
SYS_SetPowerCallback(ShutdownCB);
|
SYS_SetPowerCallback(ShutdownCB);
|
||||||
SYS_SetResetCallback(ResetCB);
|
SYS_SetResetCallback(ResetCB);
|
||||||
|
|
||||||
|
WPAD_Init();
|
||||||
|
WPAD_SetPowerButtonCallback((WPADShutdownCallback)ShutdownCB);
|
||||||
|
DI_Init();
|
||||||
|
USBStorage_Initialize();
|
||||||
|
StartNetworkThread();
|
||||||
|
#else
|
||||||
|
DVD_Init (); // Initialize DVD subsystem (GameCube only)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
SetupPads();
|
||||||
|
InitDeviceThread();
|
||||||
|
MountAllFAT(); // Initialize libFAT for SD and USB
|
||||||
|
|
||||||
|
#ifdef HW_RVL
|
||||||
// store path app was loaded from
|
// store path app was loaded from
|
||||||
if(argc > 0 && argv[0] != NULL)
|
if(argc > 0 && argv[0] != NULL)
|
||||||
CreateAppPath(argv[0]);
|
CreateAppPath(argv[0]);
|
||||||
|
|
||||||
|
InitMem2Manager();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DefaultSettings (); // Set defaults
|
DefaultSettings (); // Set defaults
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
|
|
||||||
#define APPNAME "Snes9x GX"
|
#define APPNAME "Snes9x GX"
|
||||||
#define APPVERSION "4.3.0"
|
#define APPVERSION "4.3.1"
|
||||||
#define APPFOLDER "snes9xgx"
|
#define APPFOLDER "snes9xgx"
|
||||||
#define PREF_FILE_NAME "settings.xml"
|
#define PREF_FILE_NAME "settings.xml"
|
||||||
|
|
||||||
|
@ -543,10 +543,10 @@ InitGCVideo ()
|
|||||||
VIDEO_Init();
|
VIDEO_Init();
|
||||||
|
|
||||||
// Allocate the video buffers
|
// Allocate the video buffers
|
||||||
xfb[0] = (u32 *) memalign(32, 640*574*2);
|
xfb[0] = (u32 *) memalign(32, 640*576*2);
|
||||||
xfb[1] = (u32 *) memalign(32, 640*574*2);
|
xfb[1] = (u32 *) memalign(32, 640*576*2);
|
||||||
DCInvalidateRange(xfb[0], 640*574*2);
|
DCInvalidateRange(xfb[0], 640*576*2);
|
||||||
DCInvalidateRange(xfb[1], 640*574*2);
|
DCInvalidateRange(xfb[1], 640*576*2);
|
||||||
xfb[0] = (u32 *) MEM_K0_TO_K1 (xfb[0]);
|
xfb[0] = (u32 *) MEM_K0_TO_K1 (xfb[0]);
|
||||||
xfb[1] = (u32 *) MEM_K0_TO_K1 (xfb[1]);
|
xfb[1] = (u32 *) MEM_K0_TO_K1 (xfb[1]);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<app version="4.3.0">
|
<app version="4.3.1">
|
||||||
<file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.3.0.zip"></file>
|
<file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.3.1.zip"></file>
|
||||||
</app>
|
</app>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user