This commit is contained in:
dborth 2010-03-31 02:50:05 +00:00
parent 2445c18fc5
commit 5564a022e9
8 changed files with 55 additions and 17 deletions

View File

@ -10,7 +10,7 @@
­———————————————————————————————————————————————————————————————————————————— ­————————————————————————————————————————————————————————————————————————————
×—–­—–­—–­—–­ –­—–­—–­—–­—–­—–­—–­—–­—–­—–­— ­—–­—–­—–­—–­—–­—–­—–­—-­—–­-–•¬ ×—–­—–­—–­—–­ –­—–­—–­—–­—–­—–­—–­—–­—–­—–­— ­—–­—–­—–­—–­—–­—–­—–­—-­—–­-–•¬
|0O×øo· Snes9x GX 4.1.5 ·oø×O0| |0O×øo· Snes9x GX 4.1.6 ·oø×O0|
| http://code.google.com/p/snes9x-gx | | http://code.google.com/p/snes9x-gx |
| (Under GPL License) | | (Under GPL License) |
`¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨' `¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨'
@ -32,7 +32,7 @@ Wii homebrew is WiiBrew (www.wiibrew.org).
* Cheat support * Cheat support
* Auto Load/Save Game Snapshots and SRAM * Auto Load/Save Game Snapshots and SRAM
* Custom controller configurations * Custom controller configurations
* SD, USB, DVD (requires DVDx), SMB, Zip, and 7z support * SD, USB, DVD, SMB, Zip, and 7z support
* Autodetect PAL/NTSC, 16:9 widescreen support * Autodetect PAL/NTSC, 16:9 widescreen support
* Original/filtered/unfiltered video modes * Original/filtered/unfiltered video modes
* Turbo Mode - up to 2x the normal speed * Turbo Mode - up to 2x the normal speed
@ -43,6 +43,18 @@ Wii homebrew is WiiBrew (www.wiibrew.org).
| UPDATE HISTORY | | UPDATE HISTORY |
•˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————• •˜———–—––-- - —————————––––– ———–—––-- - —————————––––– ———–—––-- - ————————•
[4.1.6 - March 30, 2010]
* New core! Updated to Snes9x 1.52. Old save states will not work!
* DVD / USB 2.0 support via IOS 202. DVDx support has been dropped. It is
highly recommended to install IOS 202 via the included installer
* Multi-language support (only French translation is fully complete)
* Thank you to everyone who submitted translations
* SMB improvements/bug fixes
* Minor video & input performance optimizations
* Now uses .srm files without "Auto" appended, if found
* Added option to disable crosshair
[4.1.5 - December 23, 2009] [4.1.5 - December 23, 2009]
* Changed default folders to snes9xgx/roms and snes9xgx/saves. Old folders * Changed default folders to snes9xgx/roms and snes9xgx/saves. Old folders

View File

@ -435,7 +435,7 @@ void GuiFileBrowser::Update(GuiTrigger * t)
} }
else else
{ {
position = 156* (int((float(browser.pageIndex) + float(FILE_PAGESIZE)*0.5f) / (float(browser.numEntries)))); position = 156 * (browser.pageIndex + FILE_PAGESIZE/2) / (float)browser.numEntries;
} }
scrollbarBoxBtn->SetPosition(0,position+36); scrollbarBoxBtn->SetPosition(0,position+36);
} }

View File

@ -20,6 +20,7 @@
#include <ogcsys.h> #include <ogcsys.h>
#include <unistd.h> #include <unistd.h>
#include <wiiuse/wpad.h> #include <wiiuse/wpad.h>
#include <ogc/lwp_watchdog.h>
#include "snes9xgx.h" #include "snes9xgx.h"
#include "button_mapping.h" #include "button_mapping.h"
@ -196,13 +197,27 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
* *
* Scans pad and wpad * Scans pad and wpad
***************************************************************************/ ***************************************************************************/
static int padsConnected = 0;
static u64 prev, now;
void void
UpdatePads() UpdatePads()
{ {
#ifdef HW_RVL #ifdef HW_RVL
WPAD_ScanPads(); WPAD_ScanPads();
#endif #endif
PAD_ScanPads();
now = gettime();
if(!padsConnected && diff_usec(prev, now) < 2000000)
return;
prev = now;
padsConnected = PAD_ScanPads();
if(!padsConnected)
return;
for(int i=3; i >= 0; i--) for(int i=3; i >= 0; i--)
{ {

View File

@ -25,6 +25,9 @@ msgstr "La décompression 7z a échoué : le fichier utilise des paramètres de
msgid "A (Rapid)" msgid "A (Rapid)"
msgstr "A (Rapide)" msgstr "A (Rapide)"
msgid "Additional coding"
msgstr "Programmation additionnelle"
msgid "Aim Offscreen" msgid "Aim Offscreen"
msgstr "Visée hors champ" msgstr "Visée hors champ"
@ -107,7 +110,7 @@ msgid "Coding"
msgstr "Programmation" msgstr "Programmation"
msgid "Coding & menu design" msgid "Coding & menu design"
msgstr "Prog. & design du menu" msgstr "Programmation & design du menu"
msgid "Compressed GBA files are not supported!" msgid "Compressed GBA files are not supported!"
msgstr "Les fichiers GBA compressés ne sont pas supportés !" msgstr "Les fichiers GBA compressés ne sont pas supportés !"
@ -287,7 +290,7 @@ msgid "Insert Coin"
msgstr "Insérer une pièce" msgstr "Insérer une pièce"
msgid "Insert Coin / Switch Disk" msgid "Insert Coin / Switch Disk"
msgstr "Insér. une pièce/Chang. disq." msgstr "Insér. une pièce/Chang. disqtte"
msgid "Invalid file size!" msgid "Invalid file size!"
msgstr "Taille du fichier invalide" msgstr "Taille du fichier invalide"
@ -752,7 +755,7 @@ msgid "State file not found"
msgstr "Pas de sauvegarde d'état trouvée" msgstr "Pas de sauvegarde d'état trouvée"
msgid "Stretch to Fit" msgid "Stretch to Fit"
msgstr "Plein écran" msgstr "Étirer au ratio de l'écran"
msgid "Superscope" msgid "Superscope"
msgstr "Super Scope" msgstr "Super Scope"

View File

@ -157,7 +157,7 @@ bool DownloadUpdate()
if (hfile > 0) if (hfile > 0)
{ {
int retval; int retval;
retval = http_request(updateURL, hfile, NULL, (1024*1024*5)); retval = http_request(updateURL, hfile, NULL, (1024*1024*10));
fclose (hfile); fclose (hfile);
} }

View File

@ -452,6 +452,7 @@ DefaultSettings ()
// Sound defaults. On Wii this is 32Khz/16bit/Stereo // Sound defaults. On Wii this is 32Khz/16bit/Stereo
Settings.SixteenBitSound = true; Settings.SixteenBitSound = true;
Settings.Stereo = true; Settings.Stereo = true;
Settings.ReverseStereo = true;
Settings.SoundPlaybackRate = 32000; Settings.SoundPlaybackRate = 32000;
Settings.SoundInputRate = 31950; Settings.SoundInputRate = 31950;

View File

@ -482,7 +482,8 @@ static GXRModeObj * FindVideoMode()
// widescreen fix // widescreen fix
if(CONF_GetAspectRatio() == CONF_ASPECT_16_9) if(CONF_GetAspectRatio() == CONF_ASPECT_16_9)
{ {
mode->viWidth = VI_MAX_WIDTH_PAL; mode->viWidth = 678;
mode->viXOrigin = (VI_MAX_WIDTH_NTSC - 678) / 2;
} }
#endif #endif
return mode; return mode;
@ -551,6 +552,9 @@ InitGCVideo ()
GX_SetCopyClear (background, 0x00ffffff); GX_SetCopyClear (background, 0x00ffffff);
GX_SetDispCopyGamma (GX_GM_1_0); GX_SetDispCopyGamma (GX_GM_1_0);
GX_SetCullMode (GX_CULL_NONE); GX_SetCullMode (GX_CULL_NONE);
GX_SetDrawDoneCallback(VIDEO_Flush);
GX_CopyDisp (xfb[whichfb], GX_TRUE); // reset xfb
GX_Flush();
vwidth = 100; vwidth = 100;
vheight = 100; vheight = 100;
@ -689,12 +693,12 @@ update_video (int width, int height)
{ {
vwidth = width; vwidth = width;
vheight = height; vheight = height;
GX_WaitDrawDone();
// Ensure previous vb has complete // Ensure previous vb has complete
while ((LWP_ThreadIsSuspended (vbthread) == 0) || (copynow == GX_TRUE)) while ((LWP_ThreadIsSuspended (vbthread) == 0) || (copynow == GX_TRUE))
{
usleep (50); usleep (50);
}
whichfb ^= 1; whichfb ^= 1;
@ -774,7 +778,7 @@ update_video (int width, int height)
draw_square (view); // draw the quad draw_square (view); // draw the quad
GX_DrawDone (); GX_SetDrawDone();
if(ScreenshotRequested) if(ScreenshotRequested)
{ {
@ -798,7 +802,6 @@ update_video (int width, int height)
} }
VIDEO_SetNextFramebuffer (xfb[whichfb]); VIDEO_SetNextFramebuffer (xfb[whichfb]);
VIDEO_Flush ();
copynow = GX_TRUE; copynow = GX_TRUE;
// Return to caller, don't waste time waiting for vb // Return to caller, don't waste time waiting for vb
@ -939,16 +942,20 @@ ResetVideo_Menu ()
* *
* Renders everything current sent to GX, and flushes video * Renders everything current sent to GX, and flushes video
***************************************************************************/ ***************************************************************************/
static bool firstFrame = true;
void Menu_Render() void Menu_Render()
{ {
if(!firstFrame)
GX_WaitDrawDone();
whichfb ^= 1; // flip framebuffer whichfb ^= 1; // flip framebuffer
GX_SetZMode(GX_TRUE, GX_LEQUAL, GX_TRUE); GX_SetZMode(GX_TRUE, GX_LEQUAL, GX_TRUE);
GX_SetColorUpdate(GX_TRUE); GX_SetColorUpdate(GX_TRUE);
GX_CopyDisp(xfb[whichfb],GX_TRUE); GX_CopyDisp(xfb[whichfb],GX_TRUE);
GX_DrawDone(); GX_SetDrawDone();
VIDEO_SetNextFramebuffer(xfb[whichfb]); VIDEO_SetNextFramebuffer(xfb[whichfb]);
VIDEO_Flush();
VIDEO_WaitVSync(); VIDEO_WaitVSync();
firstFrame = false;
} }
/**************************************************************************** /****************************************************************************

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.1.5"> <app version="4.1.6">
<file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.1.5.zip"></file> <file url="http://snes9x-gx.googlecode.com/files/Snes9x%20GX%204.1.6.zip"></file>
</app> </app>