From 5564a022e9f20ebcb6c8bd738d5362b22c7a3190 Mon Sep 17 00:00:00 2001 From: dborth Date: Wed, 31 Mar 2010 02:50:05 +0000 Subject: [PATCH] --- readme.txt | 16 ++++++++++++++-- source/gui/gui_filebrowser.cpp | 2 +- source/input.cpp | 17 ++++++++++++++++- source/lang/fr.lang | 9 ++++++--- source/networkop.cpp | 2 +- source/preferences.cpp | 1 + source/video.cpp | 21 ++++++++++++++------- update.xml | 4 ++-- 8 files changed, 55 insertions(+), 17 deletions(-) diff --git a/readme.txt b/readme.txt index c086866..fb8a14a 100644 --- a/readme.txt +++ b/readme.txt @@ -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 | | (Under GPL License) | `¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨' @@ -32,7 +32,7 @@ Wii homebrew is WiiBrew (www.wiibrew.org). * Cheat support * Auto Load/Save Game Snapshots and SRAM * 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 * Original/filtered/unfiltered video modes * Turbo Mode - up to 2x the normal speed @@ -43,6 +43,18 @@ Wii homebrew is WiiBrew (www.wiibrew.org). | 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] * Changed default folders to snes9xgx/roms and snes9xgx/saves. Old folders diff --git a/source/gui/gui_filebrowser.cpp b/source/gui/gui_filebrowser.cpp index 4caf25f..3c28fcc 100644 --- a/source/gui/gui_filebrowser.cpp +++ b/source/gui/gui_filebrowser.cpp @@ -435,7 +435,7 @@ void GuiFileBrowser::Update(GuiTrigger * t) } 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); } diff --git a/source/input.cpp b/source/input.cpp index 16bcbb7..c9b9632 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include "snes9xgx.h" #include "button_mapping.h" @@ -196,13 +197,27 @@ void ResetControls(int consoleCtrl, int wiiCtrl) * * Scans pad and wpad ***************************************************************************/ +static int padsConnected = 0; +static u64 prev, now; + void UpdatePads() { #ifdef HW_RVL WPAD_ScanPads(); #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--) { diff --git a/source/lang/fr.lang b/source/lang/fr.lang index bd00f5e..0c5d3ff 100644 --- a/source/lang/fr.lang +++ b/source/lang/fr.lang @@ -25,6 +25,9 @@ msgstr "La dΓ©compression 7z a Γ©chouΓ© : le fichier utilise des paramΓ¨tres de msgid "A (Rapid)" msgstr "A (Rapide)" +msgid "Additional coding" +msgstr "Programmation additionnelle" + msgid "Aim Offscreen" msgstr "VisΓ©e hors champ" @@ -107,7 +110,7 @@ msgid "Coding" msgstr "Programmation" msgid "Coding & menu design" -msgstr "Prog. & design du menu" +msgstr "Programmation & design du menu" msgid "Compressed GBA files are not supported!" msgstr "Les fichiers GBA compressΓ©s ne sont pas supportΓ©s !" @@ -287,7 +290,7 @@ msgid "Insert Coin" msgstr "InsΓ©rer une piΓ¨ce" 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!" msgstr "Taille du fichier invalide" @@ -752,7 +755,7 @@ msgid "State file not found" msgstr "Pas de sauvegarde d'Γ©tat trouvΓ©e" msgid "Stretch to Fit" -msgstr "Plein Γ©cran" +msgstr "Γ‰tirer au ratio de l'Γ©cran" msgid "Superscope" msgstr "Super Scope" diff --git a/source/networkop.cpp b/source/networkop.cpp index f691163..543d717 100644 --- a/source/networkop.cpp +++ b/source/networkop.cpp @@ -157,7 +157,7 @@ bool DownloadUpdate() if (hfile > 0) { int retval; - retval = http_request(updateURL, hfile, NULL, (1024*1024*5)); + retval = http_request(updateURL, hfile, NULL, (1024*1024*10)); fclose (hfile); } diff --git a/source/preferences.cpp b/source/preferences.cpp index 62723ff..25c3a6b 100644 --- a/source/preferences.cpp +++ b/source/preferences.cpp @@ -452,6 +452,7 @@ DefaultSettings () // Sound defaults. On Wii this is 32Khz/16bit/Stereo Settings.SixteenBitSound = true; Settings.Stereo = true; + Settings.ReverseStereo = true; Settings.SoundPlaybackRate = 32000; Settings.SoundInputRate = 31950; diff --git a/source/video.cpp b/source/video.cpp index e03ccb1..57c482e 100644 --- a/source/video.cpp +++ b/source/video.cpp @@ -482,7 +482,8 @@ static GXRModeObj * FindVideoMode() // widescreen fix 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 return mode; @@ -551,6 +552,9 @@ InitGCVideo () GX_SetCopyClear (background, 0x00ffffff); GX_SetDispCopyGamma (GX_GM_1_0); GX_SetCullMode (GX_CULL_NONE); + GX_SetDrawDoneCallback(VIDEO_Flush); + GX_CopyDisp (xfb[whichfb], GX_TRUE); // reset xfb + GX_Flush(); vwidth = 100; vheight = 100; @@ -689,12 +693,12 @@ update_video (int width, int height) { vwidth = width; vheight = height; + + GX_WaitDrawDone(); // Ensure previous vb has complete while ((LWP_ThreadIsSuspended (vbthread) == 0) || (copynow == GX_TRUE)) - { usleep (50); - } whichfb ^= 1; @@ -774,7 +778,7 @@ update_video (int width, int height) draw_square (view); // draw the quad - GX_DrawDone (); + GX_SetDrawDone(); if(ScreenshotRequested) { @@ -798,7 +802,6 @@ update_video (int width, int height) } VIDEO_SetNextFramebuffer (xfb[whichfb]); - VIDEO_Flush (); copynow = GX_TRUE; // 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 ***************************************************************************/ +static bool firstFrame = true; + void Menu_Render() { + if(!firstFrame) + GX_WaitDrawDone(); whichfb ^= 1; // flip framebuffer GX_SetZMode(GX_TRUE, GX_LEQUAL, GX_TRUE); GX_SetColorUpdate(GX_TRUE); GX_CopyDisp(xfb[whichfb],GX_TRUE); - GX_DrawDone(); + GX_SetDrawDone(); VIDEO_SetNextFramebuffer(xfb[whichfb]); - VIDEO_Flush(); VIDEO_WaitVSync(); + firstFrame = false; } /**************************************************************************** diff --git a/update.xml b/update.xml index c29f05e..dc4d718 100644 --- a/update.xml +++ b/update.xml @@ -1,4 +1,4 @@ - - + +