*Changed back to installer of usbloader 1.5 with a slower update rate for progressbar

*Some new languagefiles again
This commit is contained in:
dimok321 2009-05-20 13:14:52 +00:00
parent ef285a4977
commit f4df20c9c3
13 changed files with 464 additions and 463 deletions

View File

@ -1,182 +1,181 @@
Specialthanksto = Agradecimento a
t3Covers = Capas 3D
t3Covers = Capas 3D
AppLanguage = Idioma
Areyousure = Tem certeza?
AutoPatch = Mudança Automática
Back = Voltar
BacktoHBCorWiiMenu = Voltar ao HBC ou Menu do Wii
BacktoLoader = Voltar ao HBC
BacktoWiiMenu = Voltar ao Menu
BootStandard = Boot/Standard
BootStandard = Iniciar com
Both = Ambos
Cantcreatedirectory = Não foi possível criar o diretório
Cancel = Cancelar
Cantbeformated = Não pode pôde ser formatado
Cantdelete = Não foi possível apagar:
ClicktoDownloadCovers = Aperte para baixar Capas
Clock = Relógio
Continueinstallgame = Continuar instalação do jogo?
ConsoleDefault = Padrão do Console
Consoleshouldbeunlockedtomodifyit = Você precisa primeiro desbloquear para poder modificar.
ConsoleLocked = Console Bloqueado
CorrectPassword = Senha Correta
Couldnotinitializenetwork = Não foi possível inciar a Conexão!
CouldnotopenDisc = Não foi possível abrir o Disco
CouldnotinitializeDIPmodule = Não foi possível iniciar o módulo DIP!
CoverDownload = Baixar Capas
CoverPath = Local Capas
CoverpathChanged = Local Capas alterado
Coverpathchange = Alterar local Capas
Credits = Créditos
DiscImages = Imagem Disco
DiscimagePath = Local Imagem Disco
DiscpathChanged = Local Imagem Disco alterado
Discpathchange = Alterar local Imagem Disco
DiscDefault = Padrão do Disco
Display = Mostrar
Doyouwanttoformat = Deseja FORMATAR:
Doyoureallywanttodelete = Quer realmente APAGAR:
Doyouwanttoretryfor30secs = Deseja tentar novamente em 30 segs?
Downloadingfile = Baixando arquivo:
DownloadBoxartimage = Baixar imagem da Caixa?
DownloadBoxartimage = Baixar imagem da Caixa?
Downloadfinished = Pronto
Error = Erro !
BOOTERROR = ERRO DE INÍCIO
ErrorreadingDisc = Erro ao ler o Disco
ExitUSBISOLoader = Deseja sair do USB Loader GX?
InitializingNetwork = Iniciando Conexão
InsertDisk = Insira o Disco
InsertaWiiDisc = Insira um Disco de Wii!
InsertaSDCardtodownloadimages = Insira um SD para baixar imagens.
InsertaSDCardtosave = Insira um SD para guardar.
InstallRenameandDeleteareunlocked = As configurações estão bloqueadas.
InstallRenameandDeleteareunlocked = As configurações estão desbloqueadas.
Installerror = Erro de Instalação!
Installagame = Instalar um jogo
Installinggame = Instalando jogo:
Failedtoboot = Falha ao iniciar:
FailedtomountfrontSDcard = Falha ao montar SD
FailedtosetUSB = Falha ao iniciar USB:
Failedformating = Falha ao formatar
Filenotfound = Arquivo não encontrado.
filesnotfoundontheserver = arquivos não encontrados no servidor!
filesleft = arquivo(s) restante(s)
FlipX = Paginação Horizontal
Force = Forçar
Youneedtoformatapartition = Você precisa FORMATAR a partição
Format = Formatar
Formattingpleasewait = Formatando, por favor aguarde...
formated = FORMATADO!
free = livres
FreeSpace = Espaço Livre
FullShutdown = Desligar
GameID = ID do Jogo
Games = Jogos
Gameisalreadyinstalled = Este jogo já está instalado:
GameRegion = Região
GameSize = Tamañho do Jogo
GoBack = Voltar
//GotoPage = Ir a Página
HowtoShutdown = Quer Desligar?
keyboard = Teclado
Language = Idioma
Langchange = Alterar Idioma
Left = Esquerda
LikeSysMenu = Igual ao Menu do Wii.
LoadingincIOS = Carregando no cIOS249
Loadingstandardlanguage = Carregado idioma padrão.
Lock = Bloquear
LockConsole = Bloquear console
MP3Menu = Menu MP3
Missingfiles = Arquivos faltando
Networkiniterror = Erro ao iniciar conexão
Neither = Nenhum
Next = Próximo
No = Não
Nofilemissing = Não há arquivos faltando!
NoHDDfound = Disco Rígido não encontrado!
NoSDcardinserted = SD não inserido!
Nopartitionsfound = Partições não encontradas
NoUSBDevice = Dispositivo USB não encontrado
NoWBFSpartitionfound = Partição WBFS não encontrada
NormalCovers = Capas Normais
Normal = Normal
NotaWiiDisc = Não é um Disco de Wii
NoUSBDevicefound = Dispositivo USB não encontrado.
Notenoughfreespace = Não há espaço livre suficiente!
notset = não há
of = de
OFF = Desligado
OfficialSite = Site Oficial
ok = OK
ON = Ligado
Parentalcontrol = Controle de Pais
Partition = Partição
Password = Senha
PasswordChanged = Senha alterada
Passwordhasbeenchanged = A Senha foi alterada
Passwordchange = Alterar Senha
PowerofftheWii = Desligar o Wii
Prev = Anterior
PromptsButtons = Botões
ReloadSD = Recarregar SD
RenameGameonWBFS = Renomear jogo na partição WBFS
Restart = Reiniciar
Return = Voltar
ReturntoWii = Voltar ao Menu do Wii
Right = Direita
Rumble = Vibração
QuickBoot = Inicio Rápido
Save = Guardar
SaveFailed = Falha ao Guardar
Specialthanksto = Agradecimentos
Titlestxtpath = Local Titles.txt
TitlestxtpathChanged = Local titles.txt alterado
Titlestxtpathchange = Alterar local titles.txt
For = pelo
theUSBLoaderandreleasingthesourcecodethe = UBS Loader e ter liberado o código fonte
secondsleft = segundos restantes
SelectthePartition = Selecione a partição
youwanttoformat = Deseja formatar?
settings = Configurações
ShutdowntoIdle = Em espera
ShutdownSystem = Apagar Sistema
Success = Sucesso:
Successfullyinstalled = Instalado com Sucesso:
Successfullydeleted = Apagado com Sucesso:
SuccessfullySaved = Guardado com Sucesso
SystemDefault = Pradrão do Sistema
ThemePath = Local Temas
ThemepathChanged = Local Temas alterado
Themepathchange = Alterar local Temas
Try = Tentar
Tooltips = Dicas
Timeleft = Tempo restante:
Unlock = Desbloquear
Unicodefix = Corrigir Unicode
Uninstall = Desinstalar
USBLoaderisprotected = USB Loader GX está bloqueado
USBDevicenotfound = Dispositivo USB não encontrado
VideoMode = Modo de Vídeo
VIDTVPatch = Corrigir VIDTV
Volume = Volume
Waiting = Aguardando...
WaitingforUSBDevice = Aguardando o Dispositivo USB
WidescreenFix = Corrigir Widescreen
WiiMenu = Menu do Wii
WrongPassword = Senha incorreta
Yes = Sim
YoudonthavecIOS = Você não tem o cIOS222
Japanese = Japonês
German = Alemão
English = Inglês
French = Francês
Spanish = Espanhol
Italian = Italiano
Dutch = Holandês
SChinese = Chinês Simplificado
TChinese = Chinês Tradicional
Korean = Coreano
Specialthanksto = Agradecimento a
t3Covers = Capas 3D
AppLanguage = Idioma
Areyousure = Tem a certeza?
AutoPatch = Patch automático
Back = Voltar
BacktoHBCorWiiMenu = Voltar ao Loader/Menu da Wii
BacktoLoader = Voltar ao Loader
BacktoWiiMenu = Voltar ao Menu da Wii
BootStandard = Arranque/Standard
Both = Ambos
Cantcreatedirectory = Não foi possível criar a pasta
Cancel = Cancelar
Cantbeformated = Não pode pode ser formatado
Cantdelete = Não foi possível apagar:
ClicktoDownloadCovers = Carregue para descarregar capas
Clock = Relógio
Continueinstallgame = Continuar instalação do jogo?
ConsoleDefault = Predefinição Consola
Consoleshouldbeunlockedtomodifyit = É necessário desbloquear a configuração para poder modificar o parâmetro.
ConsoleLocked = Configuração Bloqueada
CorrectPassword = Password Correcta
Couldnotinitializenetwork = Não foi possível incializar a Ligação de Rede!
CouldnotopenDisc = Não foi possível abrir o Disco
CouldnotinitializeDIPmodule = Não foi possível inicializar o módulo DIP!
CoverDownload = Download de Capas
CoverPath = Pasta Capas
CoverpathChanged = Pasta das Capas alterado
Coverpathchange = Alterar Pasta das Capas
Credits = Créditos
DiscImages = Imagens de Disco
DiscimagePath = Pasta Imagens Disco
DiscpathChanged = Pasta das Imagens Disco alterada
Discpathchange = Alterar da Pasta das Imagens de Disco
DiscDefault = Predefinição Disco
Display = Mostrar
Doyouwanttoformat = Deseja FORMATAR:
Doyoureallywanttodelete = Quer mesmo REMOVER o jogo:
Doyouwanttoretryfor30secs = Deseja tentar novamente dentro de 30 segs?
Downloadingfile = Descarregando ficheiro:
DownloadBoxartimage = Descarregar imagem da Caixa?
Downloadfinished = Download Terminado
Error = Erro !
BOOTERROR = ERRO DE ARRANQUE
ErrorreadingDisc = Erro ao ler o Disco
ExitUSBISOLoader = Pretende sair do USB Loader GX?
InitializingNetwork = Inicializando Ligação de Rede
InsertDisk = Insira o Disco
InsertaWiiDisc = Insira um Disco da Wii!
InsertaSDCardtodownloadimages = Insira um cartão SD para descarregar as imagens.
InsertaSDCardtosave = Insira um cartão SD para guardar.
InstallRenameandDeleteareunlocked = As configurações estão desbloqueadas.
Installerror = Erro de Instalação!
Installagame = Instalar um jogo
Installinggame = Instalando jogo:
Failedtoboot = Falha ao arrancar:
FailedtomountfrontSDcard = Falha ao montar cartão SD
FailedtosetUSB = Falha ao iniciar USB:
Failedformating = Falha ao formatar
Filenotfound = Ficheiro não encontrado.
filesnotfoundontheserver = ficheiros não encontrados no servidor!
filesleft = ficheiros(s) restante(s)
FlipX = Paginação Horizontal
Force = Forçar
Youneedtoformatapartition = É necessário FORMATAR a partição
Format = Formatar
Formattingpleasewait = Formatando, por favor aguarde...
formated = formatado!
free = livres
FreeSpace = Espaço Livre
FullShutdown = Desligar
GameID = ID do Jogo
Games = Jogos
Gameisalreadyinstalled = Este jogo já está instalado:
GameRegion = Região
GameSize = Tamanho do Jogo
GoBack = Voltar
//GotoPage = Ir para a Página
HowtoShutdown = Como desligar a consola?
Keyboard = Teclado
Language = Idioma
Langchange = Alterar Idioma
Left = Esquerda
LikeSysMenu = Igual ao Menu da Wii
LoadingincIOS = Carregando com o cIOS249
Loadingstandardlanguage = Carregado idioma padrão.
Lock = Bloquear
LockConsole = Bloquear Configurações
MP3Menu = Menu MP3
Missingfiles = Ficheiros em falta
Networkiniterror = Erro ao inicializar ligação de rede
Neither = Nenhum
Next = Próximo
No = Não
Nofilemissing = Não há ficheiros em falta!
NoHDDfound = Não foi encontrado nenhum Disco Rígido!
NoSDcardinserted = Cartão SD não inserido!
Nopartitionsfound = Não foram encontradas partições
NoUSBDevice = Nenhum dispositivo USB encontrado
NoWBFSpartitionfound = Não foi encontrada nenhuma partição WBFS
NormalCovers = Capas Normais
Normal = Normal
NotaWiiDisc = Não é um Disco da Wii
NoUSBDevicefound = Nenhum dispositivo USB encontrado.
Notenoughfreespace = Não há espaço livre suficiente!
notset = não há
of = de
OFF = Desligado
OfficialSite = Site Oficial
ok = OK
ON = Ligado
Parentalcontrol = Controlo Parental
Partition = Partição
Password = Password
PasswordChanged = Password Alterada
Passwordhasbeenchanged = A Password foi alterada
Passwordchange = Alterar Password
PowerofftheWii = Desligar a Wii
Prev = Anterior
PromptsButtons = Mensagens/Botões
ReloadSD = Actualizar SD
RenameGameonWBFS = Alterar nome do jogo na partição WBFS
Restart = Reiniciar
Return = Voltar
ReturntoWii = Menu da Wii
Right = Direita
Rumble = Vibração
QuickBoot = Arranque Rápido
Save = Gravar
SaveFailed = Falha ao Gravar
Specialthanksto = Agradecimentos
Titlestxtpath = Pasta Titles.txt
TitlestxtpathChanged = Pasta do ficheiro titles.txt alterada.
Titlestxtpathchange = Alterar pasta do titles.txt
For = pelo
theUSBLoaderandreleasingthesourcecodethe = e ter disponibilizado o código fonte
secondsleft = segundos restantes
SelectthePartition = Seleccione a Partição
youwanttoformat = Deseja formatar?
settings = Configurações
ShutdowntoIdle = Standby
ShutdownSystem = Desligar
Success = Sucesso:
Successfullyinstalled = Instalado com Sucesso:
Successfullydeleted = Apagado com Sucesso:
SuccessfullySaved = Gravado com Sucesso
SystemDefault = Predefinição Sistema
ThemePath = Pasta Temas
ThemepathChanged = Pasta dos Temas alterada
Themepathchange = Alterar pasta dos Temas
Try = Tentar
Tooltips = Dicas
Timeleft = Tempo restante:
Unlock = Desbloquear
Unicodefix = Corrigir Unicode
Uninstall = Remover
USBLoaderisprotected = O USB Loader GX está bloqueado
USBDevicenotfound = Dispositivo USB não encontrado
VideoMode = Modo de Vídeo
VIDTVPatch = Patch VIDTV
Volume = Volume
Waiting = Aguardando...
WaitingforUSBDevice = Aguardando pelo Dispositivo USB
WidescreenFix = Correcção Widescreen
WiiMenu = Menu da Wii
WrongPassword = Password incorreta
Yes = Sim
YoudonthavecIOS = cIOS222 não instalado
Close = Fechar
Japanese = Japonês
German = Alemão
English = Inglês
French = Francês
Spanish = Espanhol
Italian = Italiano
Dutch = Holandês
SChinese = Chinês Simplificado
TChinese = Chinês Tradicional
Korean = Coreano
// Portuguese(pt-pt) Translation File for GUI USB Loader v1 rev360
// Translated by Sky8000

172
Languages/russian Normal file
View File

@ -0,0 +1,172 @@
Specialthanksto = Отдельное спасибо :
t3Covers = 3D Обложки
AppLanguage = Язык приложения
Areyousure = Вы уверены ?
AutoPatch = Авто Патч
Back = Назад
BacktoHBCorWiiMenu = Вернуться в HBC или меню Wii
BacktoLoader = Вернуться в загрузчик
BacktoWiiMenu = Вернуться в меню Wii
BootStandard = Загрузка/Стандарт
BothBoth = Оба
Cantcreatedirectory = Не могу создать папку
Cancel = Отмена
Cantbeformated = Невозможно отформатировать
Cantdelete = Невозможно удалить:
ClicktoDownloadCovers = Нажми, чтобы скачать обложки
Clock = Часы
Continueinstallgame = Продолжить установку игры ?
ConsoleDefault = По умолчанию (консоль)
Consoleshouldbeunlockedtomodifyit = Для изменения консоль должна быть разблокирована.
ConsoleLocked = Консоль заблокирована
CorrectPassword = Правильный пароль
Couldnotinitializenetwork = Не могу инициализировать сеть!
CouldnotopenDisc = Не могу прочесть диск
CouldnotinitializeDIPmodule = Не могу запустить модуль DIP!
CoverDownload = Скачать обложку
CoverPath = Путь к обложкам
CoverpathChanged = Путь к обложкам был изменен.
Coverpathchange = Сменить путь к обложкам
Credits = Об авторах
DiscImages = Изображения дисков
DiscimagePath = путь к изображениям дисков
DiscpathChanged = путь к изображениям дисков изменен
Discpathchange = изменить путь к изображениям дисков
DiscDefault = По умолчанию (диск)
Display = Отображать
Doyouwanttoformat = Вы хотите отформатировать:
Doyoureallywanttodelete = Вы хотите удалить:
Doyouwanttoretryfor30secs = Хотите попробовать еще раз на 30 секунд?
Downloadingfile = Скачиваю файл:
DownloadBoxartimage = Скачать обложку диска?
Downloadfinished =Скачивание завершено
Error = Ошибка !
BOOTERROR = ОШИБКА ЗАГРУЗКИ
ErrorreadingDisc = Ошибка чтения диска
ExitUSBISOLoader = Выйти из USB Loader GX?
InitializingNetwork = Инициализирую сеть
InsertDisk = Вставьте диск
InsertaWiiDisc = Вставьте диск от Wii!
InsertaSDCardtodownloadimages = Для скачивания изображений вставьте SD карту.
InsertaSDCardtosave = Для сохранения вставьте SD карту.
InstallRenameandDeleteareunlocked = Все функции USB Loader GX разблокированы.
Installerror = Ошибка установки!
Installagame = Установить игру
Installinggame = Устанавливаю игру:
Failedtoboot = Ошибка загрузки:
FailedtomountfrontSDcard = Ошибка при монтировании SD карты
FailedtosetUSB = Ошибка инициализации USB:
Failedformating = Форматирование не удалось
filesnotfoundontheserver = файлы не найдены на сервере!
filesleft = осталось файлов:
FlipX = Flip-X
Force = Принудительно
Youneedtoformatapartition = Требуется форматирование раздела
Format = Форматировать
Formattingpleasewait = Форматирую, пожалуйста подождите...
formated = форматирование завершено!
free = свободно
FreeSpace = Свободное пространство
FullShutdown = Полное отключение
GameID = ID игры
Games = Игры
Gameisalreadyinstalled = Игра уже установлена:
GameRegion = Регион
GameSize = Размер игры
GoBack = Назад
//GotoPage = Go to Page
HowtoShutdown = Способ отключения?
Language = Язык
Langchange = Сменить язык
Left = Налево
LikeSysMenu = как SysMenu
LoadingincIOS = загружаю с cIOS249
Lock = Заблокировать
LockConsole = Заблокировать консоль
MP3Menu = Меню MP3
Missingfiles = Отсутствующие файлы
Networkiniterror = Ошибка инициализации сети
Neither = Ни то, ни другое
Next = Следующий
No = Нет
Nofilemissing = Файл не найден!
NoHDDfound = HDD не найден!
NoSDcardinserted = SD карта не вставлена!
Nopartitionsfound = Разделы не найдены
NoUSBDevice = Нет USB устройств
NoWBFSpartitionfound = Не найден раздел WBFS
NormalCovers = Обычные обложки
Normal = Обычный
NotaWiiDisc = Это не диск Wii
NoUSBDevicefound =USB устройств не обнаружено
Notenoughfreespace = Не хватает свободного места!
notset = не установлено
of = из
OFF = ВЫКЛ
OfficialSite = Официальный сайт
ok = OK
ON = ВКЛ
Parentalcontrol = Родительский контроль
Partition = Раздел
Password = Пароль
PasswordChanged = Пароль изменен
Passwordhasbeenchanged = Пароль был изменен
Passwordchange = Сменить пароль
PowerofftheWii = Выключить Wii
Prev = Предыдущий
PromptsButtons = Кнопки приглашения
ReloadSD = Перечитать SD карту
RenameGameonWBFS = Переименовать игры в WBFS
Restart = Перезапустить
Return = Вернуться
ReturntoWii = Вернуться в меню Wii
Right = Направо
Rumble = Вибрация
QuickBoot = Быстрая загрузка
Save = Сохранить
SaveFailed = Сохранение не удалось
Specialthanksto = Отдельные благодарности
For = за
theUSBLoaderandreleasingthesourcecodethe = и публикацию исходного кода
secondsleft = секунд осталось
SelectthePartition = Выберите раздел
youwanttoformat = вы хотите отформатировать
settings = Установки
ShutdowntoIdle = Перевести в режим сна
ShutdownSystem = Выключить систему
Success = Успех:
Successfullyinstalled = Успешно установлено:
Successfullydeleted = Успешно удалено:
SuccessfullySaved = Успешно сохранено
SystemDefault = По умолчанию
ThemePath = Путь к темам
ThemepathChanged = путь к темам изменён
Themepathchange = изменить путь к темам
Try = Попытка
Tooltips = Подсказки
Timeleft = Осталось времени:
Unlock = Разблокировать
Uninstall = Деинсталлировать
USBLoaderisprotected = USB Loader GX заблокирован
USBDevicenotfound = USB устройство не найдено
VideoMode = Видео режим
VIDTVPatch = патч VIDTV
Volume = Громкость
Waiting = Ожидание...
WaitingforUSBDevice = Ожидание USB устройства
WidescreenFix = Широкоформатный фикс
WiiMenu = Меню Wii
WrongPassword = Неверный пароль
Yes = Да
YoudonthavecIOS = У вас не установлен cIOS222
Japanese = Японский
German = Немецкий
English = Английский
French = Французский
Spanish = Испанский
Italian = Итальянский
Dutch = Голландский
SChinese = Упрощенный китайский
TChinese = Традиционный китайский
Korean = Корейский
Russian = Русский

View File

@ -507,14 +507,6 @@ void cfg_set(char *name, char *val)
strcopy(CFG.unlockCode, val, sizeof(CFG.unlockCode));
return;
}
/*if (strcmp(name, "lang_path") == 0) {
strcopy(, val, sizeof(CFG.unlockCode));
return;
}*/
}
@ -1136,9 +1128,9 @@ void game_set_num(char *name, char *val)
if (strncmp(name, "game:", 5) != 0) return;
trimcopy((char*)id, name+5, sizeof(id));
game = cfg_get_game_num(id);
cfg_set_game_num(game, id);
// parse val
// first split options by ;
@ -1149,10 +1141,10 @@ void game_set_num(char *name, char *val)
np = strchr(p, ';');
if (np) trim_n_copy(opt, p, np-p, sizeof(opt));
else trimcopy(opt, p, sizeof(opt));
char opt_name[100], opt_val[100];
if (trimsplit(opt, opt_name, opt_val, ':', sizeof(opt_name))){
short opt_c;
if (strcmp("favorite", opt_name) == 0) {
if (sscanf(opt_val, "%hd", &opt_c) == 1) {
@ -1165,7 +1157,7 @@ void game_set_num(char *name, char *val)
}
}
}
if (np) p = np + 1; else p = NULL;
}
}

View File

@ -42,7 +42,7 @@ int SDCard_Init()
if (!isSdInserted()){
return -1;
}
if (fatMountSimple("SD", &__io_wiisd)) {
if (fatMount("SD", &__io_wiisd, 0, CACHE, SECTORS)) {
return 1;
}
return -1;

View File

@ -206,18 +206,6 @@ extern const u32 player3_point_png_size;
extern const u8 player4_point_png[];
extern const u32 player4_point_png_size;
extern const u8 player1_grab_png[];
extern const u32 player1_grab_png_size;
extern const u8 player2_grab_png[];
extern const u32 player2_grab_png_size;
extern const u8 player3_grab_png[];
extern const u32 player3_grab_png_size;
extern const u8 player4_grab_png[];
extern const u32 player4_grab_png_size;
extern const u8 battery_png[];
extern const u32 battery_png_size;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -84,6 +84,7 @@ snprintf(LANGUAGE.InsertDisk, sizeof(LANGUAGE.InsertDisk), "Insert Disk");
snprintf(LANGUAGE.InsertaWiiDisc, sizeof(LANGUAGE.InsertaWiiDisc), "Insert a Wii Disc!");
snprintf(LANGUAGE.InsertaSDCardtodownloadimages, sizeof(LANGUAGE.InsertaSDCardtodownloadimages), "Insert an SD-Card to download images.");
snprintf(LANGUAGE.InsertaSDCardtosave, sizeof(LANGUAGE.InsertaSDCardtosave), "Insert an SD-Card to save.");
snprintf(LANGUAGE.InsertaSDCardtousethatoption, sizeof(LANGUAGE.InsertaSDCardtousethatoption), "Insert an SD-Card to use this option.");
snprintf(LANGUAGE.InstallRenameandDeleteareunlocked, sizeof(LANGUAGE.InstallRenameandDeleteareunlocked), "All the features of USB Loader GX are unlocked.");
snprintf(LANGUAGE.Installerror, sizeof(LANGUAGE.Installerror), "Install Error!");
snprintf(LANGUAGE.Installagame, sizeof(LANGUAGE.Installagame), "Install a game");
@ -439,6 +440,10 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.InsertaSDCardtodownloadimages, val, sizeof(LANGUAGE.InsertaSDCardtodownloadimages));
return;
}
if (strcmp(name, "InsertaSDCardtousethatoption") == 0) {
strcopy(LANGUAGE.InsertaSDCardtousethatoption, val, sizeof(LANGUAGE.InsertaSDCardtousethatoption));
return;
}
if (strcmp(name, "InsertaSDCardtosave") == 0) {
strcopy(LANGUAGE.InsertaSDCardtosave, val, sizeof(LANGUAGE.InsertaSDCardtosave));
return;

View File

@ -65,6 +65,7 @@ struct LANGUAGE
char InsertaWiiDisc[50];
char InsertaSDCardtodownloadimages[80];
char InsertaSDCardtosave[60];
char InsertaSDCardtousethatoption[100];
char InstallRenameandDeleteareunlocked[100];
char Installerror[50];
char Installagame[50];

View File

@ -431,7 +431,7 @@ u32 wbfs_add_disc(wbfs_t*p,read_wiidisc_callback_t read_src_wii_disc,
info = wbfs_ioalloc(p->disc_info_sz);
read_src_wii_disc(callback_data,0,0x100,info->disc_header_copy);
copy_buffer = wbfs_ioalloc(p->wbfs_sec_sz);
copy_buffer = wbfs_ioalloc(p->wii_sec_sz);
if(!copy_buffer)
ERROR("alloc memory");
tot=0;
@ -439,26 +439,31 @@ u32 wbfs_add_disc(wbfs_t*p,read_wiidisc_callback_t read_src_wii_disc,
if(spinner){
// count total number to write for spinner
for(i=0; i<p->n_wbfs_sec_per_disc;i++)
if(copy_1_1 || block_used(used,i,wii_sec_per_wbfs_sect)) tot++;
if(copy_1_1 || block_used(used,i,wii_sec_per_wbfs_sect)) tot += wii_sec_per_wbfs_sect;
spinner(0,tot);
}
for(i=0; i<p->n_wbfs_sec_per_disc;i++){
u16 bl = 0;
if(copy_1_1 || block_used(used,i,wii_sec_per_wbfs_sect)) {
u16 j;
bl = alloc_block(p);
if (bl==0xffff)
ERROR("no space left on device (disc full)");
read_src_wii_disc(callback_data,i*(p->wbfs_sec_sz>>2),p->wbfs_sec_sz,copy_buffer);
for(j=0; j<wii_sec_per_wbfs_sect;j++) {
u32 offset = (i*(p->wbfs_sec_sz>>2)) + (j*(p->wii_sec_sz>>2));
//fix the partition table.
if(i==(0x40000>>p->wbfs_sec_sz_s))
wd_fix_partition_table(d, sel, copy_buffer+(0x40000&(p->wbfs_sec_sz-1)));
read_src_wii_disc(callback_data,offset,p->wii_sec_sz,copy_buffer);
p->write_hdsector(p->callback_data,p->part_lba+bl*(p->wbfs_sec_sz/p->hd_sec_sz),
p->wbfs_sec_sz/p->hd_sec_sz,copy_buffer);
cur++;
if(spinner)
spinner(cur,tot);
//fix the partition table
if(offset == (0x40000>>2))
wd_fix_partition_table(d, sel, copy_buffer);
p->write_hdsector(p->callback_data,p->part_lba+bl*(p->wbfs_sec_sz/p->hd_sec_sz)+j*(p->wii_sec_sz/p->hd_sec_sz),
p->wii_sec_sz/p->hd_sec_sz,copy_buffer);
cur++;
if(spinner)
spinner(cur,tot);
}
}
info->wlba_table[i] = wbfs_htons(bl);
}
@ -478,7 +483,8 @@ error:
// init with all free blocks
return 0;
}
}
u32 wbfs_rm_disc(wbfs_t*p, u8* discid)
{
wbfs_disc_t *d = wbfs_open_disc(p,discid);

View File

@ -54,7 +54,7 @@ static GuiImageData * pointer[4];
static GuiImage * bgImg = NULL;
static GuiButton * btnLogo = NULL;
static GuiImageData * background = NULL;
static char prozent[10] = "0%";
static char prozent[10] = " ";
static char timet[50] = " ";
static char sizeshow[20] = " ";
static GuiText prTxt(prozent, 26, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255}); //{0, 0, 0, 255});
@ -1082,7 +1082,7 @@ int GameWindowPrompt()
GuiText btn3Txt(LANGUAGE.settings, 22, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255}); //{0, 0, 0, 255});
GuiImage btn3Img(&btnOutline);
if (Settings.wsprompt == yes){
btn3Img.SetWidescreen(CFG.widescreen);}///////////
btn3Img.SetWidescreen(CFG.widescreen);}
GuiButton btn3(btnOutline.GetWidth(), btnOutline.GetHeight());
btn3.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
btn3.SetPosition(50, -40);
@ -1099,7 +1099,6 @@ int GameWindowPrompt()
btnLeft.SetPosition(20, 0);
btnLeft.SetImage(&btnLeftImg);
btnLeft.SetSoundOver(&btnSoundOver);
//btnLeft.SetSoundClick(&btnClick);
btnLeft.SetTrigger(&trigA);
btnLeft.SetTrigger(&trigL);
btnLeft.SetTrigger(&trigMinus);
@ -1111,7 +1110,6 @@ int GameWindowPrompt()
btnRight.SetPosition(-20, 0);
btnRight.SetImage(&btnRightImg);
btnRight.SetSoundOver(&btnSoundOver);
//btnRight.SetSoundClick(&btnClick);
btnRight.SetTrigger(&trigA);
btnRight.SetTrigger(&trigR);
btnRight.SetTrigger(&trigPlus);
@ -1706,19 +1704,14 @@ ShowProgress (s32 done, s32 total)
static time_t start;
static u32 expected;
f32 percent; //, size;
u32 d, h, m, s;
static int last_percent;
static u32 last_d;
static int last_gamesizedone;
static time_t last_time;
time_t time_now = 0;
//first time
if (!done) {
start = time(0);
expected = 300;
last_percent = -1;
last_d = 0;
last_gamesizedone = -1;
}
//Elapsed time
@ -1738,39 +1731,34 @@ ShowProgress (s32 done, s32 total)
m = (d / 60) % 60;
s = d % 60;
//Calculate percentage/size
percent = (done * 100.0) / total;
//size = (hdd->wbfs_sec_sz / GB_SIZE) * total;
if(last_time == 0)
time(&last_time);
if(last_percent != (int)(percent*100))
{
last_percent = (int)(percent*100);
sprintf(prozent, "%d.%.2d", last_percent/100, last_percent%100);
prTxt.SetText(prozent);
}
//prTxt.SetFont(fontClock);
if(last_d != d)
{
last_d = d;
sprintf(timet,"%s %d:%02d:%02d",LANGUAGE.Timeleft,h,m,s);
timeTxt.SetText(timet);
}
time(&time_now);
float gamesizedone = 0.00;
/** Update that crap only every 0.5 secs **/
if (difftime(time_now,last_time) > 0.5) {
gamesizedone = gamesize * done/total;
//Calculate percentage/size
f32 percent = (done * 100.0) / total;
sprintf(prozent, "%0.2f", percent);
prTxt.SetText(prozent);
sprintf(timet,"%s %d:%02d:%02d",LANGUAGE.Timeleft,h,m,s);
timeTxt.SetText(timet);
f32 gamesizedone = gamesize * done/total;
sprintf(sizeshow,"%0.2fGB/%0.2fGB", gamesizedone, gamesize);
sizeTxt.SetText(sizeshow);
if(last_gamesizedone != (int)(gamesizedone*100));
{
last_gamesizedone = (int)(gamesizedone*100);
int int_gamesize = (int)(gamesize*100);
sprintf(sizeshow,"%d.%.2dGB/%d.%.2dGB", last_gamesizedone/100, last_gamesizedone%100, int_gamesize/100, int_gamesize%100);
sizeTxt.SetText(sizeshow);
}
// timeTxt.SetFont(fontClock);
if ((Settings.wsprompt == yes) && (CFG.widescreen)){
progressbarImg.SetTile(80*done/total);}
else {progressbarImg.SetTile(100*done/total);}
progressbarImg.SetTile((int)(80*done/total));}
else {progressbarImg.SetTile((int)(100*done/total));}
last_time = 0;
}
}
@ -1905,7 +1893,6 @@ ProgressDownloadWindow(int choice2)
{
int i = 0, cntNotFound = 0;
// char filename[11];
GuiWindow promptWindow(472,320);
promptWindow.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
@ -1928,7 +1915,6 @@ ProgressDownloadWindow(int choice2)
snprintf(imgPath, sizeof(imgPath), "%sprogressbar_outline.png", CFG.theme_path);
GuiImageData progressbarOutline(imgPath, progressbar_outline_png);
//GuiImageData progressbarOutline(progressbar_outline_png);
GuiImage progressbarOutlineImg(&progressbarOutline);
if (Settings.wsprompt == yes){
progressbarOutlineImg.SetWidescreen(CFG.widescreen);}
@ -1937,7 +1923,6 @@ ProgressDownloadWindow(int choice2)
snprintf(imgPath, sizeof(imgPath), "%sprogressbar_empty.png", CFG.theme_path);
GuiImageData progressbarEmpty(imgPath, progressbar_empty_png);
//GuiImageData progressbarEmpty(progressbar_empty_png);
GuiImage progressbarEmptyImg(&progressbarEmpty);
progressbarEmptyImg.SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
progressbarEmptyImg.SetPosition(25, 40);
@ -1945,7 +1930,6 @@ ProgressDownloadWindow(int choice2)
snprintf(imgPath, sizeof(imgPath), "%sprogressbar.png", CFG.theme_path);
GuiImageData progressbar(imgPath, progressbar_png);
//GuiImageData progressbar(progressbar_png);
progressbarImg.SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
progressbarImg.SetPosition(25, 40);
@ -2373,10 +2357,7 @@ static int MenuInstall()
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM, vol);
//GuiImageData battery(battery_png);
//GuiImageData batteryRed(battery_red_png);
//GuiImageData batteryBar(battery_bar_png);
char imgPath[100];
char imgPath[100];
snprintf(imgPath, sizeof(imgPath), "%sbattery.png", CFG.theme_path);
GuiImageData battery(imgPath, battery_png);
@ -2621,7 +2602,7 @@ static int MenuDiscList()
f32 freespace, used, size = 0.0;
u32 nolist;
char text[MAX_CHARACTERS + 4]; //text2[20];
char text[MAX_CHARACTERS + 4];
int choice = 0, selectedold = 100;
s32 ret;
@ -2687,11 +2668,11 @@ static int MenuDiscList()
GuiTooltip installBtnTT(LANGUAGE.Installagame);
if (Settings.wsprompt == yes)
installBtnTT.SetWidescreen(CFG.widescreen);///////////
installBtnTT.SetWidescreen(CFG.widescreen);
GuiImage installBtnImg(&btnInstall);
GuiImage installBtnImgOver(&btnInstallOver);
installBtnImg.SetWidescreen(CFG.widescreen); //added
installBtnImgOver.SetWidescreen(CFG.widescreen); //added
installBtnImg.SetWidescreen(CFG.widescreen);
installBtnImgOver.SetWidescreen(CFG.widescreen);
GuiButton installBtn(btnInstall.GetWidth(), btnInstall.GetHeight());
installBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
installBtn.SetPosition(THEME.install_x, THEME.install_y);
@ -2705,12 +2686,12 @@ static int MenuDiscList()
GuiTooltip settingsBtnTT(LANGUAGE.settings);
if (Settings.wsprompt == yes)
settingsBtnTT.SetWidescreen(CFG.widescreen);///////////
settingsBtnTT.SetWidescreen(CFG.widescreen);
GuiImage settingsBtnImg(&btnSettings);
settingsBtnImg.SetWidescreen(CFG.widescreen); //added
settingsBtnImg.SetWidescreen(CFG.widescreen);
GuiImage settingsBtnImgOver(&btnSettingsOver);
settingsBtnImgOver.SetWidescreen(CFG.widescreen); //added
settingsBtnImgOver.SetWidescreen(CFG.widescreen);
GuiButton settingsBtn(btnSettings.GetWidth(), btnSettings.GetHeight());
settingsBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
settingsBtn.SetPosition(THEME.setting_x, THEME.setting_y);
@ -2724,19 +2705,18 @@ static int MenuDiscList()
GuiTooltip homeBtnTT(LANGUAGE.BacktoHBCorWiiMenu);
if (Settings.wsprompt == yes)
homeBtnTT.SetWidescreen(CFG.widescreen);///////////
homeBtnTT.SetWidescreen(CFG.widescreen);
GuiImage homeBtnImg(&btnhome);
homeBtnImg.SetWidescreen(CFG.widescreen); //added
homeBtnImg.SetWidescreen(CFG.widescreen);
GuiImage homeBtnImgOver(&btnhomeOver);
homeBtnImgOver.SetWidescreen(CFG.widescreen); //added
homeBtnImgOver.SetWidescreen(CFG.widescreen);
GuiButton homeBtn(btnhome.GetWidth(), btnhome.GetHeight());
homeBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
homeBtn.SetPosition(THEME.home_x, THEME.home_y);
homeBtn.SetImage(&homeBtnImg);
homeBtn.SetImageOver(&homeBtnImgOver);
homeBtn.SetSoundOver(&btnSoundOver);
//homeBtn.SetSoundClick(&btnClick);
homeBtn.SetTrigger(&trigA);
homeBtn.SetTrigger(&trigHome);
homeBtn.SetEffectGrow();
@ -2744,8 +2724,7 @@ static int MenuDiscList()
GuiTooltip poweroffBtnTT(LANGUAGE.PowerofftheWii);
if (Settings.wsprompt == yes)
poweroffBtnTT.SetWidescreen(CFG.widescreen);///////////
poweroffBtnTT.SetWidescreen(CFG.widescreen);
GuiImage poweroffBtnImg(&btnpwroff);
GuiImage poweroffBtnImgOver(&btnpwroffOver);
@ -2765,7 +2744,7 @@ static int MenuDiscList()
GuiTooltip sdcardBtnTT(LANGUAGE.ReloadSD);
if (Settings.wsprompt == yes)
sdcardBtnTT.SetWidescreen(CFG.widescreen);///////////
sdcardBtnTT.SetWidescreen(CFG.widescreen);
GuiImage sdcardImg(&btnsdcard);
sdcardImg.SetWidescreen(CFG.widescreen);
@ -2782,7 +2761,7 @@ static int MenuDiscList()
GuiImage wiiBtnImg(&dataID);
wiiBtnImg.SetWidescreen(CFG.widescreen);
GuiButton wiiBtn(wiiBtnImg.GetWidth(), wiiBtnImg.GetHeight());
wiiBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);//(ALIGN_MIDDLE, ALIGN_BOTTOM);
wiiBtn.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
wiiBtn.SetPosition(0,-10);
wiiBtn.SetImage(&wiiBtnImg);
wiiBtn.SetSoundOver(&btnSoundOver);
@ -2792,11 +2771,11 @@ static int MenuDiscList()
//Downloading Covers
GuiTooltip DownloadBtnTT(LANGUAGE.ClicktoDownloadCovers);
if (Settings.wsprompt == yes)
DownloadBtnTT.SetWidescreen(CFG.widescreen);///////////
DownloadBtnTT.SetWidescreen(CFG.widescreen);
GuiButton DownloadBtn(160,224);
DownloadBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
DownloadBtn.SetPosition(THEME.cover_x,THEME.cover_y);//(20, 300);
DownloadBtn.SetPosition(THEME.cover_x,THEME.cover_y);
if (CFG.godmode == 1)
{//only make the button have trigger & tooltip if in godmode
@ -2806,48 +2785,6 @@ static int MenuDiscList()
}
else
DownloadBtn.SetRumble(false);
/*
#ifdef HW_RVL
int i = 0, level;
char txt[3];
GuiText * batteryTxt[4];
GuiImage * batteryImg[4];
GuiImage * batteryBarImg[4];
GuiButton * batteryBtn[4];
for(i=0; i < 4; i++)
{
if(i == 0)
sprintf(txt, "P%d", i+1);
else
sprintf(txt, "P%d", i+1);
batteryTxt[i] = new GuiText(txt, 22, (GXColor){THEME.info_r, THEME.info_g, THEME.info_b, 255});
batteryTxt[i]->SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
batteryImg[i] = new GuiImage(&battery);
batteryImg[i]->SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
batteryImg[i]->SetPosition(36, 0);
batteryImg[i]->SetTile(0);
batteryBarImg[i] = new GuiImage(&batteryBar);
batteryBarImg[i]->SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE);
batteryBarImg[i]->SetPosition(33, 0);
batteryBtn[i] = new GuiButton(40, 20);
batteryBtn[i]->SetLabel(batteryTxt[i]);
batteryBtn[i]->SetImage(batteryBarImg[i]);
batteryBtn[i]->SetIcon(batteryImg[i]);
batteryBtn[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP);
batteryBtn[i]->SetRumble(false);
batteryBtn[i]->SetAlpha(THEME.batteryUnused);
}
batteryBtn[0]->SetPosition(THEME.battery1_x, THEME.battery1_y);
batteryBtn[1]->SetPosition(THEME.battery2_x, THEME.battery2_y);
batteryBtn[2]->SetPosition(THEME.battery3_x, THEME.battery3_y);
batteryBtn[3]->SetPosition(THEME.battery4_x, THEME.battery4_y);
#endif
*/
GuiGameBrowser gameBrowser(THEME.selection_w, THEME.selection_h, gameList, gameCnt, CFG.theme_path, bg_options_png, startat, offset);
gameBrowser.SetPosition(THEME.selection_x, THEME.selection_y);
@ -2888,17 +2825,7 @@ static int MenuDiscList()
w.Append(&clockTimeBack);
w.Append(&clockTime);
}
/*
if (THEME.showBattery)
{
#ifdef HW_RVL
w.Append(batteryBtn[0]);
w.Append(batteryBtn[1]);
w.Append(batteryBtn[2]);
w.Append(batteryBtn[3]);
#endif
}
*/
mainWindow->Append(&gameBrowser);
mainWindow->Append(&w);
@ -2928,49 +2855,16 @@ static int MenuDiscList()
strftime(theTime, sizeof(theTime), "%H %M", timeinfo);
}
clockTime.SetText(theTime);
}
else if (dataed > 0){
sprintf(buf, "%i", (dataed-1));
clockTime.SetText(buf);
//delete buf;
}
}
//////////////////////end clock code//////////////////////////////
if ((datagB<1)&&(Settings.cios==1)&&(Settings.video == ntsc)&&(Settings.hddinfo == hr12)&&(Settings.qboot==1)&&(Settings.wsprompt==0)&&(Settings.language==ger)&&(Settings.tooltips==0)){dataed=1;dataef=1;}if (dataef==1){if (cosa>7){cosa=1;}datag++;if (sina==3){wiiBtn.SetAlignment(ALIGN_LEFT,ALIGN_BOTTOM);wiiBtnImg.SetAngle(0);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((cosa)*70),(-2*(datag)+120));}else if(62<=datag){wiiBtn.SetPosition(((cosa)*70),((datag*2)-130));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==2){wiiBtn.SetAlignment(ALIGN_RIGHT,ALIGN_TOP);wiiBtnImg.SetAngle(270);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((-2*(datag)+130)),((cosa)*50));}else if(62<=datag){wiiBtn.SetPosition((2*(datag)-120),((cosa)*50));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==1){wiiBtn.SetAlignment(ALIGN_TOP,ALIGN_LEFT);wiiBtnImg.SetAngle(180);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((cosa)*70),(2*(datag)-120));}else if(62<=datag){wiiBtn.SetPosition(((cosa)*70),(-2*(datag)+130));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==0){wiiBtn.SetAlignment(ALIGN_TOP,ALIGN_LEFT);wiiBtnImg.SetAngle(90);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((2*(datag)-130)),((cosa)*50));}else if(62<=datag){wiiBtn.SetPosition((-2*(datag)+120),((cosa)*50));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}}
/*
#ifdef HW_RVL
for(i=0; i < 4; i++)
{
if(WPAD_Probe(i, NULL) == WPAD_ERR_NONE) // controller connected
{
level = (userInput[i].wpad.battery_level / 100.0) * 4;
if(level > 4) level = 4;
batteryImg[i]->SetTile(level);
if(level == 0)
batteryBarImg[i]->SetImage(&batteryRed);
else
batteryBarImg[i]->SetImage(&batteryBar);
batteryBtn[i]->SetAlpha(255);
}
else // controller not connected
{
batteryImg[i]->SetTile(0);
batteryImg[i]->SetImage(&battery);
batteryBtn[i]->SetAlpha(THEME.batteryUnused);
}
}
#endif
*/
if ((datagB<1)&&(Settings.cios==1)&&(Settings.video == ntsc)&&(Settings.hddinfo == hr12)&&(Settings.qboot==1)&&(Settings.wsprompt==0)&&(Settings.language==ger)&&(Settings.tooltips==0)){dataed=1;dataef=1;}if (dataef==1){if (cosa>7){cosa=1;}datag++;if (sina==3){wiiBtn.SetAlignment(ALIGN_LEFT,ALIGN_BOTTOM);wiiBtnImg.SetAngle(0);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((cosa)*70),(-2*(datag)+120));}else if(62<=datag){wiiBtn.SetPosition(((cosa)*70),((datag*2)-130));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==2){wiiBtn.SetAlignment(ALIGN_RIGHT,ALIGN_TOP);wiiBtnImg.SetAngle(270);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((-2*(datag)+130)),((cosa)*50));}else if(62<=datag){wiiBtn.SetPosition((2*(datag)-120),((cosa)*50));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==1){wiiBtn.SetAlignment(ALIGN_TOP,ALIGN_LEFT);wiiBtnImg.SetAngle(180);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((cosa)*70),(2*(datag)-120));}else if(62<=datag){wiiBtn.SetPosition(((cosa)*70),(-2*(datag)+130));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}if (sina==0){wiiBtn.SetAlignment(ALIGN_TOP,ALIGN_LEFT);wiiBtnImg.SetAngle(90);if(datag>163){datag=1;}else if (datag<62){wiiBtn.SetPosition(((2*(datag)-130)),((cosa)*50));}else if(62<=datag){wiiBtn.SetPosition((-2*(datag)+120),((cosa)*50));}if (datag>162){wiiBtn.SetPosition(700,700);w.Remove(&wiiBtn);datagB=2;cosa++;sina=lastrawtime%4;}w.Append(&wiiBtn);}}
// respond to button presses
if(shutdown == 1)
{
@ -3029,7 +2923,6 @@ static int MenuDiscList()
if (*(unsigned int*) 0x80001800) exit(0);
// Channel Version
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
//exit(0); //Back to HBC
} else {
homeBtn.ResetState();
gameBrowser.SetFocus(1);
@ -3059,10 +2952,10 @@ static int MenuDiscList()
else if(sdcardBtn.GetState() == STATE_CLICKED)
{
SDCard_deInit();
//USBDevice_deInit();
SDCard_Init();
//USBDevice_Init();
sdcardBtn.ResetState();
menu = MENU_DISCLIST;
break;
}
else if(DownloadBtn.GetState() == STATE_CLICKED)
@ -3094,11 +2987,9 @@ static int MenuDiscList()
{
char tempCnt[40];
//i = 0;
sprintf(tempCnt,"%i %s",cntMissFiles,LANGUAGE.Missingfiles);
choice = WindowPrompt(LANGUAGE.DownloadBoxartimage,tempCnt,LANGUAGE.Yes,LANGUAGE.No,0,0);
//WindowPrompt("Downloading","Please Wait Downloading Covers",0,0);
if (choice == 1)
{
ret = ProgressDownloadWindow(choice2);
@ -3134,7 +3025,6 @@ static int MenuDiscList()
//Get selected game under cursor
int selectimg;//, promptnumber;
//promptnumber = 0;
char ID[4];
char IDfull[7];
selectimg = gameBrowser.GetSelectedOption();
@ -3154,7 +3044,6 @@ static int MenuDiscList()
snprintf (ID,sizeof(ID),"%c%c%c", header->id[0], header->id[1], header->id[2]);
snprintf (IDfull,sizeof(IDfull),"%c%c%c%c%c%c", header->id[0], header->id[1], header->id[2],header->id[3], header->id[4], header->id[5]);
w.Remove(&DownloadBtn);
// w.Remove(coverImg);
if (GameIDTxt)
{
@ -3270,9 +3159,9 @@ static int MenuDiscList()
{
favorite = game_num->favorite;
count = game_num->count;//count+=1;
}count+=1;
if(isSdInserted() == 1) {
if (CFG_save_game_num(header->id))
{
@ -3372,7 +3261,7 @@ static int MenuDiscList()
bool returnHere = true;// prompt to start game
while (returnHere)
{
returnHere = false;
wiilight(1);
choice = GameWindowPrompt();
@ -3391,10 +3280,10 @@ static int MenuDiscList()
{
favorite = game_num->favorite;
count = game_num->count;//count+=1;
}count+=1;
if(isSdInserted() == 1) {
if (CFG_save_game_num(header->id))
{
@ -3526,17 +3415,6 @@ static int MenuDiscList()
}
HaltGui();
/*
#ifdef HW_RVL
for(i=0; i < 4; i++)
{
delete batteryTxt[i];
delete batteryImg[i];
delete batteryBarImg[i];
delete batteryBtn[i];
}
#endif
*/
mainWindow->Remove(&gameBrowser);
mainWindow->Remove(&w);
ResumeGui();
@ -3773,7 +3651,6 @@ static int MenuFormat()
if(choice == 1)
{
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
//exit(0); //zum debuggen schneller
}
}
}
@ -3852,7 +3729,7 @@ static int MenuSettings()
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage backBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
backBtnImg.SetWidescreen(CFG.widescreen);}//////
backBtnImg.SetWidescreen(CFG.widescreen);}
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
backBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
backBtn.SetPosition(-180, 400);
@ -3863,7 +3740,7 @@ static int MenuSettings()
backBtn.SetTrigger(&trigA);
backBtn.SetTrigger(&trigB);
backBtn.SetEffectGrow();
///////////////////////////////
GuiImage tab1Img(&tab1);
GuiImage tab2Img(&tab2);
GuiImage tab3Img(&tab3);
@ -3872,30 +3749,16 @@ static int MenuSettings()
tabBtn.SetPosition(-202, 90);
tabBtn.SetImage(&tab1Img);
GuiButton page1Btn(40, 96);
page1Btn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
page1Btn.SetPosition(-202, 90);
page1Btn.SetSoundOver(&btnSoundOver);
page1Btn.SetSoundClick(&btnClick);
page1Btn.SetTrigger(0, &trigA);
//page1Btn.SetTrigger(&trigL);
//page1Btn.SetTrigger(&trigMinus);
//GuiTooltip page1BtnTT("Go to Page 1");
//if (Settings.wsprompt == yes)
// page1BtnTT.SetWidescreen(CFG.widescreen);///////////
//page1Btn.SetToolTip(&page1BtnTT,105, 15);
//GuiImage page2Img(&page2);
//GuiImage page2dImg(&page2d);
GuiButton page2Btn(40, 96);
page2Btn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
page2Btn.SetPosition(-202, 186);
//page2Btn.SetImage(&page2dImg);
page2Btn.SetSoundOver(&btnSoundOver);
page2Btn.SetSoundClick(&btnClick);
page2Btn.SetTrigger(0, &trigA);
@ -3905,29 +3768,19 @@ static int MenuSettings()
GuiButton page3Btn(40, 96);
page3Btn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
page3Btn.SetPosition(-202, 282);
//page2Btn.SetImage(&page2dImg);
page3Btn.SetSoundOver(&btnSoundOver);
page3Btn.SetSoundClick(&btnClick);
page3Btn.SetTrigger(0, &trigA);
page3Btn.SetTrigger(1, &trigR);
page3Btn.SetTrigger(2, &trigPlus);
// GuiTooltip page2BtnTT("%s 2",LANGUAGE.GotoPage);
// if (Settings.wsprompt == yes)
// page2BtnTT.SetWidescreen(CFG.widescreen);///////////
// page2Btn.SetToolTip(&page2BtnTT,105,0);
////////////////////////////////
const char * text = LANGUAGE.Unlock;
if (CFG.godmode == 1)
text = LANGUAGE.Lock;
GuiText lockBtnTxt(text, 22, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255}); //{0, 0, 0, 255});
GuiText lockBtnTxt(text, 22, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255});
lockBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage lockBtnImg(&btnOutline);
lockBtnImg.SetWidescreen(CFG.widescreen);//////
lockBtnImg.SetWidescreen(CFG.widescreen);
GuiButton lockBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
lockBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
lockBtn.SetPosition(180, 400);
@ -4034,8 +3887,6 @@ static int MenuSettings()
sprintf(options2.name[6],"%s", LANGUAGE.CoverPath);
sprintf(options2.name[7],"%s", LANGUAGE.DiscimagePath);
sprintf(options2.name[8],"%s", LANGUAGE.ThemePath);
}
else if ( pageToDisplay == 3 )
{
@ -4066,8 +3917,6 @@ static int MenuSettings()
sprintf(options2.name[7], " ");
sprintf(options2.name[8], "%s",LANGUAGE.MP3Menu);
}
while(menu == MENU_NONE)
{
@ -4101,14 +3950,9 @@ static int MenuSettings()
else if (Settings.video == pal60) sprintf (options2.value[0],"%s PAL60",LANGUAGE.Force);
else if (Settings.video == ntsc) sprintf (options2.value[0],"%s NTSC",LANGUAGE.Force);
//if (Settings.vpatch == on) sprintf (options2.value[1],"%s",LANGUAGE.ON);
//else if (Settings.vpatch == off) sprintf (options2.value[1],"%s",LANGUAGE.OFF);
if (Settings.vpatch == on) sprintf (options2.value[1],"%s",LANGUAGE.ON);
else if (Settings.vpatch == off) sprintf (options2.value[1],"%s",LANGUAGE.OFF);
if (Settings.language == ConsoleLangDefault) sprintf (options2.value[2],"%s",LANGUAGE.ConsoleDefault);
else if (Settings.language == jap) sprintf (options2.value[2],"%s",LANGUAGE.Japanese);
else if (Settings.language == ger) sprintf (options2.value[2],"%s",LANGUAGE.German);
@ -4328,7 +4172,7 @@ static int MenuSettings()
w.Append(&backBtn);
w.Append(&lockBtn);
if ( result == 1 )
{
{
int len = (strlen(entered)-1);
if(entered[len] !='/')
strncat (entered, "/", 1);
@ -4417,7 +4261,6 @@ static int MenuSettings()
} else {
WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
/////load new theme//////////////
mainWindow->Remove(bgImg);
CFG_Load();
CFG_LoadGlobal();
@ -4544,7 +4387,7 @@ static int MenuSettings()
w.Append(&backBtn);
w.Append(&lockBtn);
if ( result == 1 )
{
{
int len = (strlen(entered)-1);
if(entered[len] !='/')
strncat (entered, "/", 1);
@ -4613,14 +4456,21 @@ static int MenuSettings()
Settings.unicodefix++;
break;
case 4:
menu = MENU_OGG;
pageToDisplay = 0;
if(isSdInserted() == 1) {
menu = MENU_OGG;
pageToDisplay = 0;
} else {
WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtousethatoption, LANGUAGE.ok, 0,0,0);
}
break;
case 8:
menu = MENU_MP3;
pageToDisplay = 0;
if(isSdInserted() == 1) {
menu = MENU_MP3;
pageToDisplay = 0;
} else {
WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtousethatoption, LANGUAGE.ok, 0,0,0);
}
break;
}
}
@ -4634,8 +4484,6 @@ static int MenuSettings()
{
pageToDisplay = 1;
page1Btn.ResetState();
//page1Btn.SetImage(&page1Img);
//page2Btn.SetImage(&page2dImg);
tabBtn.SetImage(&tab1Img);
menu = MENU_NONE;
break;
@ -4646,8 +4494,6 @@ static int MenuSettings()
pageToDisplay = 2;
menu = MENU_NONE;
page2Btn.ResetState();
//page1Btn.SetImage(&page1dImg);
//page2Btn.SetImage(&page2Img);
tabBtn.SetImage(&tab2Img);
break;
}
@ -4839,7 +4685,7 @@ int GameSettings(struct discHdr * header)
cancelBtn.SetTrigger(&trigA);
cancelBtn.SetTrigger(&trigB);
cancelBtn.SetEffectGrow();
GuiText deleteBtnTxt(LANGUAGE.Uninstall, 22, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255}); //{0, 0, 0, 255});
deleteBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage deleteBtnImg(&btnOutline);
@ -4880,11 +4726,11 @@ int GameSettings(struct discHdr * header)
{
faveChoice = game_num->favorite;
count = game_num->count;//count+=1;
}
else {
faveChoice = no;}
struct Game_CFG* game_cfg = CFG_get_game_opt(header->id);
@ -4941,10 +4787,10 @@ int GameSettings(struct discHdr * header)
if (iosChoice == i249) sprintf (options3.value[4],"249");
else if (iosChoice == i222) sprintf (options3.value[4],"222");
if (faveChoice == yes) sprintf (options3.value[5],"%s",LANGUAGE.Yes);
else if (faveChoice == no) sprintf (options3.value[5],"%s",LANGUAGE.No);
if(shutdown == 1)
Sys_Shutdown();
@ -4976,8 +4822,8 @@ int GameSettings(struct discHdr * header)
}
if(saveBtn.GetState() == STATE_CLICKED)
{
{
if(isSdInserted() == 1) {
//////////save game play count////////////////
extern u8 favorite;
@ -4988,9 +4834,9 @@ int GameSettings(struct discHdr * header)
{
favorite = game_num->favorite;
count = game_num->count;//count+=1;
}favorite = faveChoice;
if(isSdInserted() == 1) {
if (CFG_save_game_num(header->id))
{
@ -5550,7 +5396,6 @@ int MenuMp3()
cancelBtn.SetTrigger(&trigA);
cancelBtn.SetEffectGrow();
// bool isplaying = false;
int songPlaying=0;
GuiTrigger trigHome;
@ -5564,7 +5409,6 @@ int MenuMp3()
GuiTrigger trigPlus;
trigPlus.SetButtonOnlyTrigger(-1, WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS, 0);
// int playerIsUp=0;
snprintf(imgPath, sizeof(imgPath), "%sarrow_next.png", CFG.theme_path);
GuiImageData next(imgPath, arrow_next_png);
snprintf(imgPath, sizeof(imgPath), "%sarrow_previous.png", CFG.theme_path);
@ -5667,9 +5511,7 @@ int MenuMp3()
sprintf(fullpath,"%s%s", mp3path,mp3files[ret]);
PlayMp3(fullpath);
SetMp3Volume(127);
//playBtn.SetImage(&playBtnImg);isplaying=true;
//if (isplaying==true){playBtn.SetImage(&pauseBtnImg);isplaying=false;}
playBtn.ResetState();
playBtn.ResetState();
}
@ -5678,24 +5520,20 @@ int MenuMp3()
StopMp3();
songPlaying++;
if (songPlaying>(countmp3 - 1)){songPlaying=0;}
//ret = (optionBrowser4.GetSelectedOption()+1);
sprintf(fullpath,"%s%s", mp3path,mp3files[songPlaying]);
PlayMp3(fullpath);
SetMp3Volume(127);
nextBtn.ResetState();
//break;
}
if(prevBtn.GetState() == STATE_CLICKED)
{
StopMp3();
songPlaying--;
if (songPlaying<0){songPlaying=(countmp3 - 1);}
//ret = (optionBrowser4.GetSelectedOption()-1);
sprintf(fullpath,"%s%s", mp3path,mp3files[songPlaying]);
PlayMp3(fullpath);
SetMp3Volume(127);
prevBtn.ResetState();
//break;
}
if(stopBtn.GetState() == STATE_CLICKED)
{ StopMp3();