*Fixed little bug which prevented loading games from sub folders on fat/ntfs/ext

*Added a "Details" button on the GameWindowPrompt which calls the game info window
*Added a cache titles setting. You can disable caching titles with that. Also when re-enabling this option the cache file is newly generated. This is there so it is possible to reset a false cached title without having to delete the "TitlesCache.bin"
*Added button 2 on zoom mode of 3D Boxes to rotate the box fast by 180°
*Increased speed for box rotating with WiiMote D-Pad
This commit is contained in:
dimok321 2011-02-12 09:50:35 +00:00
parent 037edbe7ea
commit d52b7e0ac3
35 changed files with 284 additions and 37 deletions

View File

@ -2,8 +2,8 @@
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>2.0 r1069</version>
<release_date>201102061836</release_date>
<version>2.0 r1070</version>
<release_date>201102111742</release_date>
<no_ios_reload/>
<short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: David Jelinek (djelinek@hotmail.com) e->e,r->r,u->u, c->c \n"
"Language-Team: r1056 - last version on http://djelinek.sweb.cz/_USBLoderGX/czech.lang \n"
@ -249,6 +249,9 @@ msgstr "Oboje"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Nelze naformátovat"
@ -408,6 +411,9 @@ msgstr "Smazat potisk DVD"
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Vyvinul"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Fox888[dk]\n"
"Language-Team: [dk]\n"
@ -249,6 +249,9 @@ msgstr "Begge"
msgid "Both Ports"
msgstr "Begge porte"
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Kan ikke formateres"
@ -408,6 +411,9 @@ msgstr "Slet DVD-billede"
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Udviklet af"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2011-02-07 08:11+0100\n"
"Last-Translator: glowy\n"
"Language-Team: tj_cool, glowy\n"
@ -249,6 +249,9 @@ msgstr "Beide"
msgid "Both Ports"
msgstr "Beide poorten"
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Kan niet geformatteerd worden"
@ -408,6 +411,9 @@ msgstr "Disk labels verwijderen"
msgid "Design:"
msgstr "Ontwerp:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Ontwikkeld door"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -249,6 +249,9 @@ msgstr ""
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr ""
@ -408,6 +411,9 @@ msgstr ""
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr ""

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: c64rmx\n"
"Language-Team: \n"
@ -249,6 +249,9 @@ msgstr "Molemmat"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Ei voida formatoida"
@ -408,6 +411,9 @@ msgstr "Tuhoa levykuvat"
msgid "Design:"
msgstr "Suunnittelu"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Kehitys"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Cyan\n"
"Language-Team: Badablek, Amour, ikya & Kin8\n"
@ -249,6 +249,9 @@ msgstr "Les deux"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Formatage impossible"
@ -408,6 +411,9 @@ msgstr "Supprimer le label DVD"
msgid "Design:"
msgstr "Graphisme:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Développé par"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 22:00+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2010-07-03 17:35-0800\n"
"Last-Translator: TheRealVisitor\n"
"Language-Team: Bertilax, Snoozer, wishmasterf, ZEN.13, TheRealVisitor\n"
@ -249,6 +249,9 @@ msgstr "ID und Region"
msgid "Both Ports"
msgstr "Beide Ports"
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Kann nicht formatiert werden."
@ -408,6 +411,9 @@ msgstr "Lösche Disc Cover"
msgid "Design:"
msgstr "Design:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Entwickelt von"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-12-29 11:05+0100\n"
"Last-Translator: Springdale\n"
"Language-Team: Tusk, Springdale\n"
@ -249,6 +249,9 @@ msgstr "Mindkettõ"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Nem Formázható"
@ -408,6 +411,9 @@ msgstr "Lemezfotó törlése"
msgid "Design:"
msgstr "Felület:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Készítette"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2011-01-22 20:00+0200\n"
"Last-Translator: Cambo \n"
"Language-Team: Cambo\n"
@ -249,6 +249,9 @@ msgstr "Entrambi"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Non si può formattare"
@ -408,6 +411,9 @@ msgstr "Elimina l'immagine disco"
msgid "Design:"
msgstr "Grafica:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Sviluppato da"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-05 17:39+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: ichiroling\n"
"Language-Team: hosigumayuugi, papa, ichiroling\n"
@ -168,6 +168,9 @@ msgstr "制作者:"
msgid "AutoInit Network"
msgstr "自動ネット接続"
msgid "Automatic port switching is done on the fly. You need to change all custom paths to SD-Card first for this option or else it could damage a filesystem."
msgstr ""
msgid "BCA Codes Path"
msgstr "BCAコード"
@ -243,6 +246,12 @@ msgstr "起動しますか?"
msgid "Both"
msgstr "IDとリージョンを表示"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "初期化できません"
@ -402,6 +411,9 @@ msgstr "ディスク画像を削除"
msgid "Design:"
msgstr "デザイン:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "開発者:"
@ -1321,6 +1333,12 @@ msgstr "USB機器が見つかりません"
msgid "USB Loader GX is protected"
msgstr "GXは保護されています"
msgid "USB Port"
msgstr ""
msgid "USB Port changing is only supported on Hermes cIOS."
msgstr ""
msgid "Uninstall"
msgstr "アンインストール"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: nextos@korea.com\n"
"Language-Team: \n"
@ -249,6 +249,9 @@ msgstr "둘다"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "포맷할 수 없습니다."
@ -408,6 +411,9 @@ msgstr "삭제 Discart"
msgid "Design:"
msgstr "디자인:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "디자인 by"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: raschi\n"
"Language-Team: raschi\n"
@ -249,6 +249,9 @@ msgstr "Begge"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Kan ikke formateres"
@ -408,6 +411,9 @@ msgstr "Slett platebilde"
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Utviklet av"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: ziom666 (zadania_prog@vp.pl)\n"
"Language-Team: \n"
@ -249,6 +249,9 @@ msgstr "Oba"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Nie mozna sformatowac"
@ -408,6 +411,9 @@ msgstr "Usun obrazki plyt"
msgid "Design:"
msgstr "Projekt:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr ""

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-23 18:52+0200\n"
"Last-Translator: aniemotion\n"
"Language-Team: boto12, aniemotion\n"
@ -249,6 +249,9 @@ msgstr "Ambos"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Não pode pode ser formatado"
@ -408,6 +411,9 @@ msgstr "Eliminar Img. Disco"
msgid "Design:"
msgstr "Desenho:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Desenvolvido por"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2010-03-22 10:55-0000\n"
"Last-Translator: Sky8000\n"
"Language-Team: Sky8000 <sky8000@hotmail.com>\n"
@ -249,6 +249,9 @@ msgstr "Ambos"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Não pode ser formatado"
@ -408,6 +411,9 @@ msgstr "Eliminar Img. Disco"
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Desenvolvido por"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: nikolai_ca\n"
"Language-Team: Kir, alendit, nikolai_ca\n"
@ -249,6 +249,9 @@ msgstr "Оба"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Невозможно отформатировать"
@ -408,6 +411,9 @@ msgstr "Удалить картинку диска"
msgid "Design:"
msgstr "Дизайн:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Создано "

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-11 18:41+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: knife.hu kavid emul8ion\n"
"Language-Team: kavid\n"
@ -249,6 +249,9 @@ msgstr "全部"
msgid "Both Ports"
msgstr "两个接口"
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "无法格式化"
@ -408,6 +411,9 @@ msgstr "删除光盘图片"
msgid "Design:"
msgstr "设计:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "开发"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: SirPalax\n"
"Language-Team: Penn, SirPalax\n"
@ -249,6 +249,9 @@ msgstr "Ambos"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "No se puede formatear"
@ -408,6 +411,9 @@ msgstr "Borrar Imagen Disco"
msgid "Design:"
msgstr "Diseño:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Desarrollado por"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2010-01-19 17:39+0200\n"
"Last-Translator: Katsurou\n"
"Language-Team: Katsurou, pirateX\n"
@ -249,6 +249,9 @@ msgstr "Båda"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Kan inte formateras"
@ -408,6 +411,9 @@ msgstr "Radera skivbilder"
msgid "Design:"
msgstr ""
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Utvecklat av"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2010-02-15 21:00+0800\n"
"Last-Translator: Jane.H\n"
"Language-Team: kyogc, Miller, Mika Li, Jane.H\n"
@ -249,6 +249,9 @@ msgstr "全部"
msgid "Both Ports"
msgstr "兩個插槽"
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "無法格式化"
@ -408,6 +411,9 @@ msgstr "刪除光碟圖片"
msgid "Design:"
msgstr "設計者:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "開發商"
@ -1857,4 +1863,4 @@ msgstr "剩餘秒數"
#~ msgstr "不存在!檔案錯誤"
#~ msgid "file left"
#~ msgstr "剩餘文件"
#~ msgstr "剩餘文件"

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Nitro_subzero \n"
"Language-Team: Nitro_subzero\n"
@ -249,6 +249,9 @@ msgstr "ทั้งคู่"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "ไม่สามารถฟอร์แมตได้"
@ -408,6 +411,9 @@ msgstr "ลบ ภาพแผ่น"
msgid "Design:"
msgstr "ออกแบบ:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "พัฒนาโดย "

View File

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-06 19:36+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: omercigingelini\n"
"Language-Team: omercigingelini\n"
@ -249,6 +249,9 @@ msgstr "İkisi de"
msgid "Both Ports"
msgstr ""
msgid "Cache Titles"
msgstr ""
msgid "Can't be formatted"
msgstr "Biçimlendirilemiyor"
@ -408,6 +411,9 @@ msgstr "Disk Görselini Sil"
msgid "Design:"
msgstr "Tasarım:"
msgid "Details"
msgstr ""
msgid "Developed by"
msgstr "Geliştirme"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-01-20 15:51+0100\n"
"POT-Creation-Date: 2011-02-12 10:25+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
@ -427,5 +427,11 @@ msgstr ""
msgid "68 - region info text pos x"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game window details button text color"
msgstr ""
msgid "r=30 g=30 b=240 a=255 - game window details button over text color"
msgstr ""
msgid "1 - Enable tooltips: 0 for off and 1 for on"
msgstr ""

View File

@ -101,22 +101,30 @@ void BoxCover::WiiPADControl(GuiTrigger *t)
if(t->wpad.btns_h & WPAD_BUTTON_UP)
{
RotX -= 1.0f;
RotX -= 2.0f;
last_manual_move_frame = frameCount;
}
if(t->wpad.btns_h & WPAD_BUTTON_DOWN)
{
RotX += 1.0f;
RotX += 2.0f;
last_manual_move_frame = frameCount;
}
if(t->wpad.btns_h & WPAD_BUTTON_LEFT)
{
RotY -= 1.0f;
RotY -= 2.0f;
last_manual_move_frame = frameCount;
}
if(t->wpad.btns_h & WPAD_BUTTON_RIGHT)
{
RotY += 1.0f;
RotY += 2.0f;
last_manual_move_frame = frameCount;
}
if(t->wpad.btns_d & WPAD_BUTTON_2)
{
if(RotY < 180.0f)
SetEffect(EFFECT_BOX_ROTATE_X, 10, 180);
else
SetEffect(EFFECT_BOX_ROTATE_X, -10, -180);
last_manual_move_frame = frameCount;
}
if(t->wpad.btns_h & WPAD_BUTTON_PLUS)
@ -359,4 +367,16 @@ void BoxCover::UpdateEffects()
effectAmount = 0;
}
}
else if(effects & EFFECT_BOX_ROTATE_X)
{
RotY += effectAmount;
effectTarget -= effectAmount;
if(fabs(effectTarget) < fabs(effectAmount))
{
effects = 0;
effectAmount = 0;
effectTarget = 0;
}
}
}

View File

@ -26,8 +26,9 @@
#include "libwiigui/gui.h"
#define EFFECT_BOX_FLY_CENTRE 0x4000000
#define EFFECT_BOX_FLY_BACK 0x8000000
#define EFFECT_BOX_FLY_CENTRE 0x2000000
#define EFFECT_BOX_FLY_BACK 0x4000000
#define EFFECT_BOX_ROTATE_X 0x8000000
class BoxCover : public GuiImage
{

View File

@ -2,6 +2,9 @@
GuiDiskCover::GuiDiskCover()
{
PosZ = 50;
Distance = 55;
OldDegBeta = 0.0;
deg_beta = 0.0;
eff_step = 0;
// spin_angle = 0;
@ -11,6 +14,9 @@ GuiDiskCover::GuiDiskCover()
GuiDiskCover::GuiDiskCover(GuiImageData *Disk) :
GuiImage(Disk)
{
PosZ = 50;
Distance = 55;
OldDegBeta = 0.0;
deg_beta = 0.0;
eff_step = 0;
// spin_angle = 0;
@ -40,6 +46,25 @@ void GuiDiskCover::SetSpin(bool Up)
spin_up = Up;
}
void GuiDiskCover::SetState(int s, int c)
{
if(state == STATE_DEFAULT && s == STATE_DISABLED)
{
PosZ = 0;
Distance = 0;
OldDegBeta = deg_beta;
deg_beta = 0.0f;
}
else if(state == STATE_DISABLED && s == STATE_DEFAULT)
{
PosZ = 50;
Distance = 55;
deg_beta = OldDegBeta;
}
GuiImage::SetState(s, c);
}
void Menu_DrawDiskCover(f32 xpos, f32 ypos, f32 zpos, u16 width, u16 height, u16 distance, u8 data[], f32 deg_alpha,
f32 deg_beta, f32 scaleX, f32 scaleY, u8 alpha, bool shadow);
void Menu_DrawDiskCoverShadow(f32 xpos, f32 ypos, f32 zpos, u16 width, u16 height, u16 distance, u8 data[],
@ -51,9 +76,9 @@ void GuiDiskCover::Draw()
if (!image || !this->IsVisible()) return;
float currScale = this->GetScale();
// Menu_DrawDiskCoverShadow(this->GetLeft(), this->GetTop(), 190, width, height, 40, image, imageangle, deg_beta, widescreen ? currScale*0.8 : currScale, currScale, this->GetAlpha(), true);
Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), 50, width, height, 55, image, imageangle, deg_beta,
Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), PosZ, width, height, Distance, image, imageangle, deg_beta,
widescreen ? currScale * 0.8 : currScale, currScale, 64, true);
Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), 50, width, height, 55, image, imageangle, deg_beta,
Menu_DrawDiskCover(this->GetLeft(), this->GetTop(), PosZ, width, height, Distance, image, imageangle, deg_beta,
widescreen ? currScale * 0.8 : currScale, currScale, this->GetAlpha(), false);
if (eff_step)

View File

@ -14,6 +14,7 @@ class GuiDiskCover: public GuiImage
bool GetBetaRotateEffect();
void SetSpin(bool Up);
void SetState(int s, int c = -1);
void Draw();
private:
f32 deg_beta;
@ -22,6 +23,9 @@ class GuiDiskCover: public GuiImage
// f32 spin_angle;
f32 spin_speedup;
int PosZ;
int Distance;
f32 OldDegBeta;
bool spin_up;
};

View File

@ -10,6 +10,7 @@
#include "settings/GameTitles.h"
#include "settings/Settings.h"
#include "prompts/PromptWindows.h"
#include "prompts/gameinfo.h"
#include "language/gettext.h"
#include "menu/menus.h"
#include "banner/OpeningBNR.hpp"
@ -156,9 +157,20 @@ GameWindow::GameWindow(int Selected)
btnRight->SetTrigger(trigR);
btnRight->SetTrigger(trigPlus);
detailsBtnTxt = new GuiText(tr( "Details" ), 22, thColor("r=0 g=0 b=0 a=255 - game window details button text color"));
detailsBtnOverTxt = new GuiText(tr( "Details" ), 22, thColor("r=30 g=30 b=240 a=255 - game window details button over text color"));
detailsBtn = new GuiButton(detailsBtnTxt->GetTextWidth(), 25);
detailsBtn->SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
detailsBtn->SetPosition(120, 45);
detailsBtn->SetLabel(detailsBtnTxt);
detailsBtn->SetLabelOver(detailsBtnOverTxt);
detailsBtn->SetTrigger(trigA);
detailsBtn->SetEffectGrow();
Append(dialogBoxImg);
Append(playcntTxt);
Append(backBtn);
Append(detailsBtn);
if (!mountMethod)//stuff we don't show if it is a DVD mounted
{
Append(nameBtn);
@ -232,6 +244,8 @@ GameWindow::~GameWindow()
delete nameTxt;
delete backBtnTxt;
delete settingsBtnTxt;
delete detailsBtnTxt;
delete detailsBtnOverTxt;
delete nameBtn;
delete gameBtn;
@ -239,6 +253,7 @@ GameWindow::~GameWindow()
delete settingsBtn;
delete btnLeft;
delete btnRight;
delete detailsBtn;
for(int i = 0; i < FAVORITE_STARS; ++i)
{
@ -558,6 +573,18 @@ int GameWindow::MainLoop()
btnLeft->ResetState();
}
else if(detailsBtn->GetState() == STATE_CLICKED)
{
char gameID[7];
struct discHdr * header = (mountMethod ? dvdheader : gameList[gameSelected]);
snprintf(gameID, sizeof(gameID), (char *) header->id);
diskImg->SetState(STATE_DISABLED);
showGameInfo(gameID);
mainWindow->SetState(STATE_DISABLED);
this->SetState(STATE_DEFAULT);
diskImg->SetState(STATE_DEFAULT);
detailsBtn->ResetState();
}
if (reducedVol)
{

View File

@ -57,11 +57,14 @@ class GameWindow : public GuiWindow
GuiText * nameTxt;
GuiText * backBtnTxt;
GuiText * settingsBtnTxt;
GuiText * detailsBtnTxt;
GuiText * detailsBtnOverTxt;
GuiButton * nameBtn;
GuiButton * gameBtn;
GuiButton * backBtn;
GuiButton * settingsBtn;
GuiButton * detailsBtn;
GuiButton * btnLeft;
GuiButton * btnRight;
GuiButton * FavoriteBtn[FAVORITE_STARS];

View File

@ -115,6 +115,7 @@ void CSettings::SetDefault()
HomeMenu = HOME_MENU_DEFAULT;
MultiplePartitions = OFF;
USBPort = 0;
CacheTitles = ON;
}
bool CSettings::Load()

View File

@ -112,6 +112,7 @@ class CSettings
short HomeMenu;
short MultiplePartitions;
short USBPort;
short CacheTitles;
u32 InstallPartitions;
u32 ParentalBlocks;
protected:

View File

@ -215,7 +215,8 @@ void CGameTitles::LoadTitlesFromWiiTDB(const char * path)
Filepath += "wiitdb.xml";
//! Read game titles cache database
ReadCachedTitles(Cachepath.c_str());
if(Settings.CacheTitles)
ReadCachedTitles(Cachepath.c_str());
//! Read game list
gameList.LoadUnfiltered();
@ -259,5 +260,6 @@ void CGameTitles::LoadTitlesFromWiiTDB(const char * path)
TitleList[TitleList.size()-1].PlayersCount = ret;
}
WriteCachedTitles(Cachepath.c_str());
if(Settings.CacheTitles)
WriteCachedTitles(Cachepath.c_str());
}

View File

@ -117,6 +117,7 @@ GuiSettingsMenu::GuiSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Rumble" ));
Options->SetName(Idx++, "%s", tr( "AutoInit Network" ));
Options->SetName(Idx++, "%s", tr( "Titles from WiiTDB" ));
Options->SetName(Idx++, "%s", tr( "Cache Titles" ));
Options->SetName(Idx++, "%s", tr( "Screensaver" ));
Options->SetName(Idx++, "%s", tr( "Mark new games" ));
Options->SetName(Idx++, "%s", tr( "Show Free Space" ));
@ -185,6 +186,9 @@ void GuiSettingsMenu::SetOptionValues()
//! Settings: Titles from WiiTDB
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.titlesOverride] ));
//! Settings: Cache Titles
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.CacheTitles] ));
//! Settings: Screensaver
Options->SetValue(Idx++, "%s", tr( ScreensaverText[Settings.screensaver] ));
@ -313,6 +317,15 @@ int GuiSettingsMenu::GetMenuInternal()
if (++Settings.titlesOverride >= MAX_ON_OFF) Settings.titlesOverride = 0;
}
//! Settings: Cache Titles
else if (ret == ++Idx)
{
if (++Settings.CacheTitles >= MAX_ON_OFF) Settings.CacheTitles = 0;
if(Settings.CacheTitles) //! create new cache file
GameTitles.LoadTitlesFromWiiTDB(Settings.titlestxt_path);
}
//! Settings: Screensaver
else if (ret == ++Idx)
{

View File

@ -603,7 +603,7 @@ int Wbfs_Fat::FindFilename(u8 *id, char *fname, int len)
if (stat(fname, &st) == 0) break;
}
snprintf(fname, sizeof(fname), "%s/%s", path, dirent->d_name);
snprintf(fname, len, "%s/%s", path, dirent->d_name);
if(stat(fname, &st) != 0)
{