finalize 2.2.8

This commit is contained in:
dborth 2012-07-29 21:08:21 +00:00
parent de05496f98
commit 603431cbfd
6 changed files with 17 additions and 26 deletions

View File

@ -2,8 +2,8 @@
<app version="1"> <app version="1">
<name>Visual Boy Advance GX</name> <name>Visual Boy Advance GX</name>
<coder>Tantric</coder> <coder>Tantric</coder>
<version>2.2.7</version> <version>2.2.8</version>
<release_date>20120707</release_date> <release_date>20120729</release_date>
<short_description>GBA/GBC/GB Emulator</short_description> <short_description>GBA/GBC/GB Emulator</short_description>
<long_description>A port of Visual Boy Advance - M to the Wii.</long_description> <long_description>A port of Visual Boy Advance - M to the Wii.</long_description>
<ahb_access /> <ahb_access />

View File

@ -27,6 +27,10 @@ With it you can play GBA/Game Boy Color/Game Boy games on your Wii/GameCube.
|0O×øo· UPDATE HISTORY ·oø×O0| |0O×øo· UPDATE HISTORY ·oø×O0|
`¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨' `¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨'
[2.2.8 - July 29, 2012]
* Fixed lag with GameCube controllers
[2.2.7 - July 7, 2012] [2.2.7 - July 7, 2012]
* Fixed PAL support * Fixed PAL support

View File

@ -133,8 +133,6 @@ void ResetControls(int wiiCtrl)
* *
* Scans pad and wpad * Scans pad and wpad
***************************************************************************/ ***************************************************************************/
static int padsConnected = 0;
static u64 prev, now;
void void
UpdatePads() UpdatePads()
@ -143,17 +141,7 @@ UpdatePads()
WPAD_ScanPads(); WPAD_ScanPads();
#endif #endif
now = gettime(); PAD_ScanPads();
if(!padsConnected && diff_sec(prev, now) < 2)
return;
prev = now;
padsConnected = PAD_ScanPads();
if(!padsConnected)
return;
int i = 3; int i = 3;
do { do {
@ -367,12 +355,12 @@ u32 StandardMovement(unsigned short chan)
u32 StandardDPad(unsigned short pad) u32 StandardDPad(unsigned short pad)
{ {
u32 J = 0; u32 J = 0;
u32 jp = PAD_ButtonsHeld(pad); u32 jp = userInput[pad].pad.btns_h;
#ifdef HW_RVL #ifdef HW_RVL
u32 exp_type; u32 exp_type;
if ( WPAD_Probe(pad, &exp_type) != 0 ) if ( WPAD_Probe(pad, &exp_type) != 0 )
exp_type = WPAD_EXP_NONE; exp_type = WPAD_EXP_NONE;
u32 wp = WPAD_ButtonsHeld(pad); u32 wp = userInput[pad].wpad->btns_h;
if (wp & WPAD_BUTTON_RIGHT) if (wp & WPAD_BUTTON_RIGHT)
J |= VBA_RIGHT; J |= VBA_RIGHT;
if (wp & WPAD_BUTTON_LEFT) if (wp & WPAD_BUTTON_LEFT)
@ -408,7 +396,7 @@ u32 StandardSideways(unsigned short pad)
{ {
u32 J = 0; u32 J = 0;
#ifdef HW_RVL #ifdef HW_RVL
u32 wp = WPAD_ButtonsHeld(pad); u32 wp = userInput[pad].wpad->btns_h;
if (wp & WPAD_BUTTON_RIGHT) if (wp & WPAD_BUTTON_RIGHT)
J |= VBA_UP; J |= VBA_UP;
@ -448,7 +436,7 @@ u32 StandardClassic(unsigned short pad)
{ {
u32 J = 0; u32 J = 0;
#ifdef HW_RVL #ifdef HW_RVL
u32 wp = WPAD_ButtonsHeld(pad); u32 wp = userInput[pad].wpad->btns_h;
if (wp & WPAD_CLASSIC_BUTTON_RIGHT) if (wp & WPAD_CLASSIC_BUTTON_RIGHT)
J |= VBA_RIGHT; J |= VBA_RIGHT;
@ -482,7 +470,7 @@ u32 StandardClassic(unsigned short pad)
u32 StandardGamecube(unsigned short pad) u32 StandardGamecube(unsigned short pad)
{ {
u32 J = 0; u32 J = 0;
u32 jp = PAD_ButtonsHeld(pad); u32 jp = userInput[pad].pad.btns_h;
if (jp & PAD_BUTTON_UP) if (jp & PAD_BUTTON_UP)
J |= VBA_UP; J |= VBA_UP;
if (jp & PAD_BUTTON_DOWN) if (jp & PAD_BUTTON_DOWN)
@ -511,7 +499,7 @@ u32 StandardGamecube(unsigned short pad)
u32 DecodeGamecube(unsigned short pad) u32 DecodeGamecube(unsigned short pad)
{ {
u32 J = 0; u32 J = 0;
u32 jp = PAD_ButtonsHeld(pad); u32 jp = userInput[pad].pad.btns_h;
for (u32 i = 0; i < MAXJP; ++i) for (u32 i = 0; i < MAXJP; ++i)
{ {
if (jp & btnmap[CTRLR_GCPAD][i]) if (jp & btnmap[CTRLR_GCPAD][i])
@ -912,8 +900,6 @@ bool MenuRequested()
u32 GetJoy(int pad) u32 GetJoy(int pad)
{ {
UpdatePads();
// request to go back to menu // request to go back to menu
if (MenuRequested()) if (MenuRequested())
{ {

View File

@ -16,7 +16,7 @@
#include "utils/FreeTypeGX.h" #include "utils/FreeTypeGX.h"
#define APPNAME "Visual Boy Advance GX" #define APPNAME "Visual Boy Advance GX"
#define APPVERSION "2.2.7" #define APPVERSION "2.2.8"
#define APPFOLDER "vbagx" #define APPFOLDER "vbagx"
#define PREF_FILE_NAME "settings.xml" #define PREF_FILE_NAME "settings.xml"
#define PAL_FILE_NAME "palettes.xml" #define PAL_FILE_NAME "palettes.xml"

View File

@ -440,6 +440,7 @@ void systemOnSoundShutdown()
****************************************************************************/ ****************************************************************************/
bool systemReadJoypads() bool systemReadJoypads()
{ {
UpdatePads();
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="2.2.7"> <app version="2.2.8">
<file url="http://vba-wii.googlecode.com/files/Visual%20Boy%20Advance%20GX%202.2.7.zip"></file> <file url="http://vba-wii.googlecode.com/files/Visual%20Boy%20Advance%20GX%202.2.8.zip"></file>
</app> </app>