mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
finalize 2.2.1
This commit is contained in:
parent
ee9ff48aae
commit
57b507bf12
@ -2,8 +2,9 @@
|
|||||||
<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.0</version>
|
<version>2.2.1</version>
|
||||||
<release_date>20100722</release_date>
|
<release_date>20100814</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>
|
||||||
|
<no_ios_reload/>
|
||||||
</app>
|
</app>
|
||||||
|
@ -27,6 +27,12 @@ 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.1 - August 14, 2010]
|
||||||
|
|
||||||
|
* IOS 202 support removed
|
||||||
|
* USB 2.0 support via IOS 58 added - requires that IOS58 be pre-installed
|
||||||
|
* DVD support via AHBPROT - requires latest HBC
|
||||||
|
|
||||||
[2.2.0 - July 22, 2010]
|
[2.2.0 - July 22, 2010]
|
||||||
|
|
||||||
* Fixed broken auto-update
|
* Fixed broken auto-update
|
||||||
|
@ -671,13 +671,21 @@ SavePrefs (bool silent)
|
|||||||
|
|
||||||
sprintf(filepath, "%s%s", pathPrefix[device], APPFOLDER);
|
sprintf(filepath, "%s%s", pathPrefix[device], APPFOLDER);
|
||||||
|
|
||||||
if (!diropen(filepath))
|
DIR_ITER *dir = diropen(filepath);
|
||||||
|
if (!dir)
|
||||||
{
|
{
|
||||||
mkdir(filepath, 0777);
|
if(mkdir(filepath, 0777) != 0)
|
||||||
|
return false;
|
||||||
sprintf(filepath, "%s%s/roms", pathPrefix[device], APPFOLDER);
|
sprintf(filepath, "%s%s/roms", pathPrefix[device], APPFOLDER);
|
||||||
mkdir(filepath, 0777);
|
if(mkdir(filepath, 0777) != 0)
|
||||||
|
return false;
|
||||||
sprintf(filepath, "%s%s/saves", pathPrefix[device], APPFOLDER);
|
sprintf(filepath, "%s%s/saves", pathPrefix[device], APPFOLDER);
|
||||||
mkdir(filepath, 0777);
|
if(mkdir(filepath, 0777) != 0)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dirclose(dir);
|
||||||
}
|
}
|
||||||
sprintf(filepath, "%s%s/%s", pathPrefix[device], APPFOLDER, PREF_FILE_NAME);
|
sprintf(filepath, "%s%s/%s", pathPrefix[device], APPFOLDER, PREF_FILE_NAME);
|
||||||
sprintf(prefpath, "%s%s", pathPrefix[device], APPFOLDER);
|
sprintf(prefpath, "%s%s", pathPrefix[device], APPFOLDER);
|
||||||
|
@ -178,51 +178,12 @@ static void ipl_set_config(unsigned char c)
|
|||||||
* IOS Check
|
* IOS Check
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
static bool FindIOS(u32 ios)
|
|
||||||
{
|
|
||||||
s32 ret;
|
|
||||||
u32 n;
|
|
||||||
|
|
||||||
u64 *titles = NULL;
|
|
||||||
u32 num_titles=0;
|
|
||||||
|
|
||||||
ret = ES_GetNumTitles(&num_titles);
|
|
||||||
if (ret < 0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if(num_titles < 1)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
titles = (u64 *)memalign(32, num_titles * sizeof(u64) + 32);
|
|
||||||
if (!titles)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
ret = ES_GetTitles(titles, num_titles);
|
|
||||||
if (ret < 0)
|
|
||||||
{
|
|
||||||
free(titles);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(n=0; n < num_titles; n++)
|
|
||||||
{
|
|
||||||
if((titles[n] & 0xFFFFFFFF)==ios)
|
|
||||||
{
|
|
||||||
free(titles);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
free(titles);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SaneIOS()
|
bool SaneIOS()
|
||||||
{
|
{
|
||||||
bool res = false;
|
bool res = false;
|
||||||
u32 num_titles=0;
|
u32 num_titles=0;
|
||||||
u32 tmd_size;
|
u32 tmd_size;
|
||||||
u32 ios = IOS_GetVersion();
|
u32 ios = IOS_GetVersion();
|
||||||
u32 tmdbuffer[MAX_SIGNED_TMD_SIZE] ATTRIBUTE_ALIGN(32);
|
|
||||||
|
|
||||||
if(ios > 200)
|
if(ios > 200)
|
||||||
return false;
|
return false;
|
||||||
@ -235,12 +196,23 @@ bool SaneIOS()
|
|||||||
|
|
||||||
u64 *titles = (u64 *)memalign(32, num_titles * sizeof(u64) + 32);
|
u64 *titles = (u64 *)memalign(32, num_titles * sizeof(u64) + 32);
|
||||||
|
|
||||||
|
if(!titles)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (ES_GetTitles(titles, num_titles) < 0)
|
if (ES_GetTitles(titles, num_titles) < 0)
|
||||||
{
|
{
|
||||||
free(titles);
|
free(titles);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 *tmdbuffer = (u32 *)memalign(32, MAX_SIGNED_TMD_SIZE);
|
||||||
|
|
||||||
|
if(!tmdbuffer)
|
||||||
|
{
|
||||||
|
free(titles);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
for(u32 n=0; n < num_titles; n++)
|
for(u32 n=0; n < num_titles; n++)
|
||||||
{
|
{
|
||||||
if((titles[n] & 0xFFFFFFFF) != ios)
|
if((titles[n] & 0xFFFFFFFF) != ios)
|
||||||
@ -261,6 +233,7 @@ bool SaneIOS()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(tmdbuffer);
|
||||||
free(titles);
|
free(titles);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -336,14 +309,11 @@ int main(int argc, char *argv[])
|
|||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
// only reload IOS if AHBPROT is not enabled
|
// only reload IOS if AHBPROT is not enabled
|
||||||
u32 version = IOS_GetVersion();
|
u32 version = IOS_GetVersion();
|
||||||
|
s32 preferred = IOS_GetPreferredVersion();
|
||||||
|
|
||||||
|
if(version != 58 && preferred > 0 && version != (u32)preferred && __di_check_ahbprot() != 1)
|
||||||
|
IOS_ReloadIOS(preferred);
|
||||||
|
|
||||||
if(version != 58 && __di_check_ahbprot() != 1)
|
|
||||||
{
|
|
||||||
if(FindIOS(58))
|
|
||||||
IOS_ReloadIOS(58);
|
|
||||||
else if((version < 61 || version >= 200) && FindIOS(61))
|
|
||||||
IOS_ReloadIOS(61);
|
|
||||||
}
|
|
||||||
DI_Init();
|
DI_Init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -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.0"
|
#define APPVERSION "2.2.1"
|
||||||
#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"
|
||||||
|
@ -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.0">
|
<app version="2.2.1">
|
||||||
<file url="http://vba-wii.googlecode.com/files/Visual%20Boy%20Advance%20GX%202.2.0.zip"></file>
|
<file url="http://vba-wii.googlecode.com/files/Visual%20Boy%20Advance%20GX%202.2.1.zip"></file>
|
||||||
</app>
|
</app>
|
||||||
|
Loading…
Reference in New Issue
Block a user