finalize 4.2.2

This commit is contained in:
dborth 2010-07-20 06:45:04 +00:00
parent 9bdcf2969e
commit 3aa626f2b5
7 changed files with 15 additions and 62 deletions

View File

@ -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.2.1</version> <version>4.2.2</version>
<release_date>20100714</release_date> <release_date>20100720</release_date>
<short_description>Super Nintendo Emulator</short_description> <short_description>Super Nintendo Emulator</short_description>
<long_description>A Super Nintendo Emulator for Wii</long_description> <long_description>A Super Nintendo Emulator for Wii</long_description>
</app> </app>

View File

@ -10,7 +10,7 @@
­———————————————————————————————————————————————————————————————————————————— ­————————————————————————————————————————————————————————————————————————————
×—–­—–­—–­—–­ –­—–­—–­—–­—–­—–­—–­—–­—–­—–­— ­—–­—–­—–­—–­—–­—–­—–­—-­—–­-–•¬ ×—–­—–­—–­—–­ –­—–­—–­—–­—–­—–­—–­—–­—–­—–­— ­—–­—–­—–­—–­—–­—–­—–­—-­—–­-–•¬
|0O×øo· Snes9x GX 4.2.1 ·oø×O0| |0O×øo· Snes9x GX 4.2.2 ·oø×O0|
| http://code.google.com/p/snes9x-gx | | http://code.google.com/p/snes9x-gx |
| (Under GPL License) | | (Under GPL License) |
`¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨' `¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨'
@ -43,6 +43,11 @@ Wii homebrew is WiiBrew (www.wiibrew.org).
| UPDATE HISTORY | | UPDATE HISTORY |
•˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————• •˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————•
[4.2.2 - July 20, 2010]
* Reverted USB2 changes
* Fixed return-to-menu crash with Filtered mode
[4.2.1 - July 14, 2010] [4.2.1 - July 14, 2010]
* Improved audio timing * Improved audio timing

View File

@ -252,31 +252,6 @@ static bool FindIOS(u32 ios)
free(titles); free(titles);
return false; return false;
} }
#define ROUNDDOWN32(v) (((u32)(v)-0x1f)&~0x1f)
static bool USBLANDetected()
{
u8 dummy;
u8 i;
u16 vid, pid;
USB_Initialize();
u8 *buffer = (u8*)ROUNDDOWN32(((u32)SYS_GetArena2Hi() - (32*1024)));
memset(buffer, 0, 8 << 3);
if(USB_GetDeviceList("/dev/usb/oh0", buffer, 8, 0, &dummy) < 0)
return false;
for(i = 0; i < 8; i++)
{
memcpy(&vid, (buffer + (i << 3) + 4), 2);
memcpy(&pid, (buffer + (i << 3) + 6), 2);
if( (vid == 0x0b95) && (pid == 0x7720))
return true;
}
return false;
}
#endif #endif
/**************************************************************************** /****************************************************************************
* USB Gecko Debugging * USB Gecko Debugging
@ -343,8 +318,6 @@ main(int argc, char *argv[])
#endif #endif
#ifdef HW_RVL #ifdef HW_RVL
bool usblan = USBLANDetected();
// try to load IOS 202 // try to load IOS 202
if(FindIOS(202)) if(FindIOS(202))
IOS_ReloadIOS(202); IOS_ReloadIOS(202);
@ -354,33 +327,11 @@ main(int argc, char *argv[])
if(IOS_GetVersion() == 202) if(IOS_GetVersion() == 202)
{ {
// enable DVD and USB2 // enable DVD and USB2
DI_LoadDVDX(false);
DI_Init();
if(mload_init() >= 0 && load_ehci_module()) if(mload_init() >= 0 && load_ehci_module())
{
int mode = 3;
if(usblan)
{
int usblanport = GetUSB2LanPort();
if(usblanport >= 0)
{
if(usblanport == 1)
mode = 1;
else
mode = 2;
USB2Storage_Close();
mload_close();
IOS_ReloadIOS(202);
mload_init();
load_ehci_module();
}
}
SetUSB2Mode(mode);
USB2Enable(true); USB2Enable(true);
DI_LoadDVDX(false);
DI_Init();
}
} }
#endif #endif

View File

@ -20,7 +20,7 @@
#include "filelist.h" #include "filelist.h"
#define APPNAME "Snes9x GX" #define APPNAME "Snes9x GX"
#define APPVERSION "4.2.1" #define APPVERSION "4.2.2"
#define APPFOLDER "snes9xgx" #define APPFOLDER "snes9xgx"
#define PREF_FILE_NAME "settings.xml" #define PREF_FILE_NAME "settings.xml"

Binary file not shown.

View File

@ -135,9 +135,6 @@ int mload_init()
mloadVersion = IOS_IoctlvFormat(hid, mload_fd, MLOAD_GET_MLOAD_VERSION, ":"); mloadVersion = IOS_IoctlvFormat(hid, mload_fd, MLOAD_GET_MLOAD_VERSION, ":");
iosBase = IOS_IoctlvFormat(hid, mload_fd, MLOAD_GET_IOS_BASE, ":"); iosBase = IOS_IoctlvFormat(hid, mload_fd, MLOAD_GET_IOS_BASE, ":");
if(mloadVersion < 0x52) // unsupported IOS202
return mload_close();
return mload_fd; return mload_fd;
} }
@ -257,7 +254,7 @@ bool load_ehci_module()
if(mload_run_thread(elf.start, elf.stack, elf.size_stack, elf.prio) < 0) if(mload_run_thread(elf.start, elf.stack, elf.size_stack, elf.prio) < 0)
return false; return false;
usleep(5000); usleep(5000);
return true; return true;
} }

View File

@ -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.2.1"> <app version="4.2.2">
<file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.2.1.zip"></file> <file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.2.2.zip"></file>
</app> </app>