*Added new custom backgroundmusic Menu (the music has to be in OGG Format. if you remove the path to the music the standard of the GUi is loaded right now)

*Added languagefiles again
*Added some new Languagevariables which will be added to wiki tommorow
This commit is contained in:
dimok321 2009-05-20 00:03:43 +00:00
parent 6538947fef
commit 71c288f0a2
19 changed files with 1250 additions and 224 deletions

171
Languages/korean Normal file
View File

@ -0,0 +1,171 @@
Specialthanksto = Special thanks to
t3Covers = 3D 표지
AppLanguage = 어플리케이션 언어
Areyousure = 확실합니까?
AutoPatch = 자동 패치
Back = 뒤로
BacktoHBCorWiiMenu = 홈브류 메뉴 또는 Wii 메뉴로
BacktoLoader = Loader로 돌아가기
BacktoWiiMenu = Wii 메뉴로 놀아가기
BootStandard = 부트/기본
BothBoth = 전부 표시
Cantcreatedirectory = 디렉토리를 만들 수 없습니다
Cancel = 취소
Cantbeformated = 포맷할 수 없습니다.
Cantdelete = 삭제할 수 없습니다:
ClicktoDownloadCovers = 표지를 다운 받으려면 클릭하세요.
Clock = 시계
Continueinstallgame = 게임을 설치하겠습니까?
ConsoleDefault = 콘솔 기본값
Consoleshouldbeunlockedtomodifyit = 변경하려면 콘솔 잠김을 해제하세요.
ConsoleLocked = 콘솔 잠김
CorrectPassword = 올바른 비밀번호
Couldnotinitializenetwork = 네트워크 초기화 실패!
CouldnotopenDisc = 디스크를 열 수 없습니다.
CouldnotinitializeDIPmodule = DIP 모듈 초기화 실패!
CoverDownload = 표지 다운로드
CoverPath = 표지 경로
CoverpathChanged = 표지 경로 변경됨
Coverpathchange = 표지 경로 변경
Credits = 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 = 페이지로 가기
HowtoShutdown = 어떻게 종료할까요?
Language = 언어
Langchange = 언어 변경
Left = 왼쪽
LikeSysMenu = 세스템 메뉴처럼
LoadingincIOS = cIOS249로 로딩
Lock = 잠금
LockConsole = 콘솔 잠금
MP3Menu = MP3 메뉴
Missingfiles = 빠진 파일
Networkiniterror = 네트워크 초기화 에러
Neither = 표시 없음
Next = 다음
No = 아니오
Nofilemissing = 빠진 파일 없음!
NoHDDfound = 하드 디스크가 없습니다!
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 = Special thanks to
For = for
theUSBLoaderandreleasingthesourcecodethe = 소스 코드 배포
secondsleft = 초 남았습니다
SelectthePartition = 포맷하려는
youwanttoformat = 파티션을 선택하세요
settings = 설정
ShutdowntoIdle = Idle상태로 종료
ShutdownSystem = 시스템 종료
Success = 성공:
Successfullyinstalled = 설치 성공:
Successfullydeleted = 삭제 성공:
SuccessfullySaved = 저장 성공
SystemDefault = 시스템 기본값
ThemePath = 테마 경로
ThemepathChanged = 테마 경로 변경됨
Themepathchange = 테마 경로 변경
Try = 시도
Tooltips = Tooltips
Timeleft = 남은 시간:
Unlock = 잠금해제
Uninstall = 제거
USBLoaderisprotected = USB Loader GX 보호모드
USBDevicenotfound = USB 장치가 없습니다.
VideoMode = 비디오 모드
VIDTVPatch = VIDTV 패치
Volume = 볼륨
Waiting = 기다리는 중...
WaitingforUSBDevice = USB 장치를 기다리는 중
WidescreenFix = 와이드 스크린 Fix
WiiMenu = Wii 메뉴
WrongPassword = 잘못된 비밀번호
Yes = 예
YoudonthavecIOS = cIOS222가 없습니다.
Japanese = 일본어
German = 독일어
English = 영어
French = 불어
Spanish = 스페인어
Italian = 이태리어
Dutch = 네덜란드어
SChinese = 중국어(간체)
TChinese = 중국어(번체)
Korean = 한국어

177
Languages/norwegian Normal file
View File

@ -0,0 +1,177 @@
t3Covers = 3D cover
AppLanguage = Program språk
Areyousure = Er du sikker?
AutoPatch = AutoPatch
Back = Tilbake
BacktoHBCorWiiMenu = Tilbake til HBC eller Wii meny
BacktoLoader = HBC/Loader
BacktoWiiMenu = Wii meny
BootStandard = Boot/Standard
Both = Begge
Cantcreatedirectory = Kan ikke opprette mappestruktur
Cancel = Avbryt
Cantbeformated = Kan ikke formateres
Cantdelete = Kan ikke slette:
ClicktoDownloadCovers = Klikk for å laste ned cover
Clock = Klokke
Continueinstallgame = Fortsett å installere spill?
ConsoleDefault = Konsoll Standard
Consoleshouldbeunlockedtomodifyit = Konsoll må være opplåst for å modifisere.
ConsoleLocked = Konsoll låst
CorrectPassword = Riktig passord
Couldnotinitializenetwork = Kan ikke initialisere nettverk!
CouldnotopenDisc = Kan ikke åpne plate
CouldnotinitializeDIPmodule = Kan ikke initialisere DIP modul!
CoverDownload = Cover nedlasting
CoverPath = Cover sti
CoverpathChanged = Cover sti endret
Coverpathchange = Endre cover sti
Credits = Medvirkende
DiscImages = Plate bilder
DiscimagePath = Plate sti
DiscpathChanged = Plate sti endret
Discpathchange = Endre plate sti
DiscDefault = Plate Standard
Display = Vis
Doyouwanttoformat = Vil du formatere:
Doyoureallywanttodelete = Er du sikker på at du vil slette:
Doyouwanttoretryfor30secs = Vil du fortsette å prøve i 30 sekunder?
Downloadingfile = Laster ned fil:
DownloadBoxartimage = Last ned cover bilde?
Downloadfinished = Nedlasting ferdig
Error = Feil !
BOOTERROR = BOOT FEIL
ErrorreadingDisc = Feil ved lesing av plate
ExitUSBISOLoader = Avslutt USB Loader GX?
InitializingNetwork = Initialiserer nettverk
InsertDisk = Sett inn plate
InsertaWiiDisc = Sett inn en Wii plate!
InsertaSDCardtodownloadimages = Sett inn et SD-kort for å laste ned bilder.
InsertaSDCardtosave = Sett inn et SD-kort for å lagre.
InstallRenameandDeleteareunlocked = Alle funksjonene til USB Loader GX er opplåst.
Installerror = Installasjonsfeil!
Installagame = Installér et spill
Installinggame = Installerer spill:
Failedtoboot = Feil ved start:
FailedtomountfrontSDcard = Feil ved montering av SD-kort i front
FailedtosetUSB = Feil ved valgt USB:
Failedformating = Feil ved formatering
Filenotfound = Fil ikke funnet.
filesnotfoundontheserver = filer ikke funnet på serveren!
filesleft = fil(er) gjenstår
FlipX = Flip-X
Force = Tving
Youneedtoformatapartition = Du må formatere en partisjon
Format = Formatér
Formattingpleasewait = Formaterer, vennligst vent...
formated = formatert!
free = ledig
FreeSpace = Ledig plass
FullShutdown = Skru helt av
GameID = Spill ID
Games = Spill
Gameisalreadyinstalled = Spillet er allerede installert:
GameRegion = Region
GameSize = Spill størrelse
GoBack = Gå tilbake
//GotoPage = Gå til side
HowtoShutdown = Hvordan skru av?
keyboard = Tastatur
Language = Språk
Langchange = Bytt språk
Left = Venstre
LikeSysMenu = Lik Systemmeny
LoadingincIOS = Laster i cIOS249
Loadingstandardlanguage = Laster standard språk.
Lock = Lås
LockConsole = Lås konsoll
MP3Menu = MP3 meny
Missingfiles = Manglende filer
Networkiniterror = Nettverk init feil
Neither = Ingen
Next = Neste
No = Nei
Nofilemissing = Ingen filer mangler!
NoHDDfound = Ingen HDD funnet!
NoSDcardinserted = Intet SD-kort satt i!
Nopartitionsfound = Ingen partisjoner funnet
NoUSBDevice = Ingen USB enhet
NoWBFSpartitionfound = Ingen WBFS partisjon funnet
NormalCovers = Normale cover
Normal = Normal
NotaWiiDisc = Ikke en Wii plate
NoUSBDevicefound = Ingen USB enhet funnet.
Notenoughfreespace = Ikke nok ledig plass!
notset = ikke satt
of = av
OFF = AV
OfficialSite = Offisiell nettside
ok = OK
ON = PÅ
Parentalcontrol = Foreldre kontroll
Partition = Partisjon
Password = Passord
PasswordChanged = Passord endret
Passwordhasbeenchanged = Passord har blitt endret
Passwordchange = Endre passord
PowerofftheWii = Skru av Wii
Prev = Forrige
PromptsButtons = Dialog knapper
ReloadSD = Les SD på nytt
RenameGameonWBFS = Gi nytt navn til spill på WBFS
Restart = Start på nytt
Return = Gå tilbake
ReturntoWii = Tilbake til Wii meny
Right = Høyre
Rumble = Vibrasjon
QuickBoot = Hurtig start
Save = Lagre
SaveFailed = Lagre feilet
Specialthanksto = Spesiell takk til
Titlestxtpath = Titles.txt sti
TitlestxtpathChanged = Titles.txt sti endret.
Titlestxtpathchange = Endre titles.txt sti
For = for
theUSBLoaderandreleasingthesourcecodethe = og utgivelse av kildekoden
secondsleft = sekunder gjenstår
SelectthePartition = Velg partisjonen
youwanttoformat = du vil formatere
settings = Innstillinger
ShutdowntoIdle = Skru av
ShutdownSystem = Skru helt av
Success = Suksess:
Successfullyinstalled = Vellykket installering:
Successfullydeleted = Vellykket sletting:
SuccessfullySaved = Vellykket lagring
SystemDefault = System Standard
ThemePath = Tema sti
ThemepathChanged = Tema sti endret
Themepathchange = Endre tema sti
Try = Prøv
Tooltips = Verktøystips
Timeleft = Tid igjen:
Unlock = Lås opp
Unicodefix = Unicode fiks
Uninstall = Avinstallér
USBLoaderisprotected = USB Loader GX er beskyttet
USBDevicenotfound = USB enhet ikke funnet
VideoMode = Video modus
VIDTVPatch = VIDTV Patch
Volume = Volum
Waiting = Venter...
WaitingforUSBDevice = Venter på USB enhet
WidescreenFix = Fiks for 16/9
WiiMenu = Wii meny
WrongPassword = Feil passord
Yes = Ja
YoudonthavecIOS = Du har ikke cIOS222
Japanese = Japansk
German = Tysk
English = Engelsk
French = Fransk
Spanish = Spansk
Italian = Italiensk
Dutch = Nederlandsk
SChinese = S.Kinesisk
TChinese = T.Kinesisk
Korean = Koreansk

178
Languages/schinese Normal file
View File

@ -0,0 +1,178 @@
Specialthanksto = 特别感谢
t3Coverst = 3D 封面
AppLanguage = 语言设定
Areyousure = 确定?
AutoPatch = 自动选择
Back = 返回
BacktoHBCorWiiMenu = 返回 HBC 或 Wii 系统菜单
BacktoLoader = 返回 Loader
BacktoWiiMenu = 返回 Wii 系统菜单
BootStandard = 启动/标准
BothBoth = 全部
Cantcreatedirectory = 无法建立目录
Cancel = 取消
Cantbeformated = 无法格式化
Cantdelete = 无法删除:
ClicktoDownloadCovers = 点击下载封面
Clock = 时钟
Continueinstallgame = 继续安装游戏?
ConsoleDefault = 主机默认
Consoleshouldbeunlockedtomodifyit = 需解锁以开启设定功能.
ConsoleLocked = 主机锁定
CorrectPassword = 密码正确
Couldnotinitializenetwork = 无法启动网络!
CouldnotopenDisc = 无法开启光盘
CouldnotinitializeDIPmodule = 无法启动 DIP 模块!
CoverDownload = 下载封面
CoverPath = 封面存放路径
CoverpathChanged = 封面路径已变更
Coverpathchange = 变更封面存放路径
Credits = Credits
DiscImages = DVD封面
DiscimagePath = 菜单封面存放路径
DiscpathChanged = DVD封面路径已变更
Discpathchange = 变更DVD封面存放路径
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 = 按键规则
Force = 强制
Youneedtoformatapartition = 必须格式化一个分区
Format = 格式化
Formattingpleasewait = 格式化中, 请稍候...
formated = 完成格式化!
free = 剩余
FreeSpace = 剩余空间
FullShutdown = 完全关机
GameID = 游戏ID
Games = 游戏
Gameisalreadyinstalled = 已安装过游戏:
GameRegion = 区域
GameSize = 游戏容量
GoBack = 返回
GotoPage = 前往页面
HowtoShutdown = 如何关机?
Language = 语言
Langchange = 变更语言
Left = 左
LikeSysMenu = 同系统选单
LoadingincIOS = 以 cIOS249 载入
Lock = 锁定
LockConsole = 锁定控制台
MP3Menu = MP3 选单
Missingfiles = 缺少的文件
Networkiniterror = 网络启动错误
Neither = 全不
Next = 往后
No = 否
Nofilemissing = 没有缺少的文件!
NoHDDfound = 找不到硬盘!
NoSDcardinserted = 未插入 SD 卡!
Nopartitionsfound = 找不到分区
NoUSBDevice = 没有 USB 设备
NoWBFSpartitionfound = 找不到 WBFS 分区
NormalCovers = 一般封面
Normal = 一般
NotaWiiDisc = 不是 Wii 的光盘
NoUSBDevicefound = 找不到 USB 设备.
Notenoughfreespace = 剩余空间不足!
notset = 未设定
of = 的
OFF = 关闭
OfficialSite = 官方网址
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 = 韩文
keyboard = 键盘
Unicodefix = Unicode 修正
Filenotfound = 找不到文件
Loadingstandardlanguage = 载入标准语言
Titlestxtpath = Titles.txt 存放路径
TitlestxtpathChanged = titles.txt 路径已变更
Titlestxtpathchange = 变更 titles.txt 存放路径

View File

@ -1,179 +1,178 @@
Specialthanksto = Muchas gracias a Specialthanksto = Agradecimientos
t3Covers = Carátulas 3D t3Covers = Carátulas 3D
AppLanguage = Idioma de la aplicación AppLanguage = Idioma Aplic.
Areyousure = ¿Estás Seguro? Areyousure = ¿Estás seguro?
AutoPatch = Auto-Parcheo AutoPatch = AutoParchar
Back = Atrás Back = Volver
BacktoHBCorWiiMenu = Volver al HBC o Menú Wii BacktoHBCorWiiMenu = Volver a HBC o Menú Wii
BacktoLoader = Volver al Cargador BacktoLoader = Volver al HBC
BacktoWiiMenu = Volver al menú de wii BacktoWiiMenu = Volver a Menú Wii
BootStandard = Inicio/Estándar BootStandard = Inicio/Estandar
Both = Ambos Both = Ambos
Cantcreatedirectory = No puedo crear el directorio Cantcreatedirectory = No se creó directorio
Cancel = Cancelar Cancel = Cancelar
Cantbeformated = No se puede formatear Cantbeformated = No se pudo formatear
Cantdelete = No se puede borrar: Cantdelete = No se eliminó:
ClicktoDownloadCovers = Click para descargar carátulas ClicktoDownloadCovers = Click para bajar Carátulas
Clock = Reloj Clock = Reloj
Continueinstallgame = ¿Continuo instalando el juego? Continueinstallgame = ¿Continuar instalando juego?
ConsoleDefault = Predeterm. consola ConsoleDefault = Pred. Consola
Consoleshouldbeunlockedtomodifyit = La consola debería estar desbloqueada Consoleshouldbeunlockedtomodifyit = Consola debe desbloquearse para modificarla.
para modificarlo. ConsoleLocked = Consola Bloqueada
ConsoleLocked = Consola bloqueada CorrectPassword = Contraseña Correcta
CorrectPassword = Contraseña Correcta Couldnotinitializenetwork = ¡No se pudo iniciar la Conexión!
Couldnotinitializenetwork = ¡No puedo iniciar la red! CouldnotopenDisc = No se pudo abrir Disco
CouldnotopenDisc = No se puede abrir el disco CouldnotinitializeDIPmodule = ¡No se pudo iniciar módulo DIP!
CouldnotinitializeDIPmodule = ¡No se puede inicializar modulo DIP! CoverDownload = Descarga de Carátulas
CoverDownload = Descarga de carátulas CoverPath = Ruta Carátulas
CoverPath = Ruta a Carátulas CoverpathChanged = Ruta de Carátulas cambiada
CoverpathChanged = Ruta a carátulas cambiada Coverpathchange = Cambio ruta Carátulas
Coverpathchange = Cambiar ruta a carátulas Credits = Créditos
Credits = Créditos DiscImages = Img. de Disco
DiscImages = Imágen Discos DiscimagePath = Ruta Img. Disco
DiscimagePath = Ruta imágen discos DiscpathChanged = Ruta Img. Disco cambiada
DiscpathChanged = Ruta de discos cambiada Discpathchange = Cambio ruta Img. Disco
Discpathchange = Cambiar ruta a imágenes de disco DiscDefault = Pred. Disco
DiscDefault = Disco por defecto Display = Mostrar
Display = Pantalla Doyouwanttoformat = Quieres formatear:
Doyouwanttoformat = ¿Quieres formatear?: Doyoureallywanttodelete = Realmente quieres eliminar:
Doyoureallywanttodelete = ¿Realmente quieres borrar?: Doyouwanttoretryfor30secs = ¿Quiéres reintentar por 30 segs.?
Doyouwanttoretryfor30secs = ¿Quieres intentarlo otros 30 segundos? Downloadingfile = Descargando archivo:
Downloadingfile = Descargando fichero: DownloadBoxartimage = ¿Descargar Imágenes?
DownloadBoxartimage = ¿Descargar imagen de caja? Downloadfinished = Descarga completa
Downloadfinished = Descarga finalizada Error = ¡Error!
Error = ¡Error ! BOOTERROR = ERROR DE INICIO
BOOTERROR = ¡Error de arranque ! ErrorreadingDisc = Error leyendo Disco
ErrorreadingDisc = Error leyendo disco ExitUSBISOLoader = ¿Salir de USB Loader GX?
ExitUSBISOLoader = Salir del USB Loader GX? InitializingNetwork = Iniciando Conexión
InitializingNetwork = Inicializando red InsertDisk = Inserta el Disco
InsertDisk = Introduzca el disco InsertaWiiDisc = ¡Inserta un Disco Wii!
InsertaWiiDisc = ¡Ponga un disco de wii! InsertaSDCardtodownloadimages = Insertar SD para bajar imágenes.
InsertaSDCardtodownloadimages = Introduzca una tarjeta SD para descargar imágenes. InsertaSDCardtosave = Insertar SD para guardar.
InsertaSDCardtosave = Introduzca una tarjeta SD para guardar. InstallRenameandDeleteareunlocked = Todas las caracteristicas del USB Loader GX desbloqueadas.
InstallRenameandDeleteareunlocked = Todas las opciones de USB Loader GX desbloqueadas. Installerror = ¡Error de Instalación!
Installerror = ¡Error de instalación! Installagame = Instalar un juego
Installagame = Instalar un juego Installinggame = Instalando juego:
Installinggame = Instalando juego: Failedtoboot = Fallo al iniciar:
Failedtoboot = Fallo en el inicio: FailedtomountfrontSDcard = Fallo al montar SD
FailedtomountfrontSDcard = Fallo al montar la tarjeta SD FailedtosetUSB = Fallo al iniciar USB:
FailedtosetUSB = Fallo al usar el USB: Failedformating = Fallo al formatear
Failedformating = Fallo al dar formato Filenotfound = Archivo no encontrado.
filesnotfoundontheserver = ¡ Fichero(s) no encontrado(s) en el servidor ! filesnotfoundontheserver = archivos no encontrados en el servidor!
filesleft = Ficheros(s) restante(s) filesleft = archivo(s) restante(s)
FlipX = Desplazamiento X FlipX = Flip-X
Force = Forzar Force = Forzar
Youneedtoformatapartition = Necesitas formatear una partición Youneedtoformatapartition = Necesitas formatear una partición
Format = Formatear Format = Formateo
Formattingpleasewait = Dando formato. por favor, espere... Formattingpleasewait = Formateando, por favor espera...
formated = ¡Formateado ! formated = formateado!
free = Libre free = libres
FreeSpace = Espacio libre FreeSpace = Espacio Libre
FullShutdown = Apagado total FullShutdown = Apagado Total
GameID = ID de juego GameID = ID de Juego
Games = Juegos Games = Juegos
Gameisalreadyinstalled = El Juego ya estaba instalado: Gameisalreadyinstalled = Juego ya estaba instalado:
GameRegion = Región GameRegion = Región
GameSize = Tamaño del juego GameSize = Tamaño del Juego
GoBack = Volver GoBack = Volver
//GotoPage = Ir a página //GotoPage = Ir a Página
HowtoShutdown = ¿Cómo apago? HowtoShutdown = ¿Cómo Apagar?
Language = Idioma Keyboard = Teclado
Langchange = Cambio de idioma Language = Idioma
Left = Izquierda Langchange = Cambio de Idioma
LikeSysMenu = Cómo menú de sistema Left = Izquierda
LoadingincIOS = Cargando en cIOS249 LikeSysMenu = Como Menú Sist.
Lock = Bloqueo LoadingincIOS = Cargando en cIOS249
LockConsole = Bloquear consola Loadingstandardlanguage = Cargando idioma estandar.
MP3Menu = Menu MP3 Lock = Bloquear
Missingfiles = Fichero(s) no encontrado(s) LockConsole = Bloquear consola
Networkiniterror = Error de inicio de red MP3Menu = Menú MP3
Neither = Ninguno Missingfiles = Archivo(s) faltante(s)
Next = Siguiente Networkiniterror = Error inicio conexión
No = No Neither = Ninguno
Nofilemissing = ¡No faltan ficheros! Next = Siguiente
NoHDDfound = ¡No encuentro HD! No = No
NoSDcardinserted = ¡No hay insertada tarjeta SD! Nofilemissing = ¡No hay archivo(s) faltante(s)!
Nopartitionsfound = ¡No encuentro particiónes! NoHDDfound = ¡HDD no encontrado!
NoUSBDevice = No hay dispositivo USB NoSDcardinserted = ¡SD no insertada!
NoWBFSpartitionfound = No encuentro partición WBFS Nopartitionsfound = Particiones no encontradas
NormalCovers = Carátulas normales NoUSBDevice = USB no encontrado
Normal = Normal NoWBFSpartitionfound = Partición WBFS no encontrada
NotaWiiDisc = No es un disco de wii NormalCovers = Carátulas Norm.
NoUSBDevicefound = No encuentro dispositivo USB. Normal = Normal
Notenoughfreespace = ¡No hay suficiente espacio libre! NotaWiiDisc = No es un Disco Wii
notset = Sin poner NoUSBDevicefound = USB no encontrado.
of = de Notenoughfreespace = ¡No hay suficiente espacio libre!
OFF = Apagado notset = no puesto
OfficialSite = Sitio Oficial of = de
ok = OK OFF = Apagado
ON = Encendido OfficialSite = Sitio Oficial
Parentalcontrol = Control Parental ok = OK
Partition = Partición ON = Encendido
Password = Contraseña Parentalcontrol = Control Parental
PasswordChanged = Contraseña Cambiada Partition = Partición
Passwordhasbeenchanged = La contraseña se ha cambiado Password = Contraseña
Passwordchange = Cambio de contraseña PasswordChanged = Contraseña cambiada
PowerofftheWii = Apague la Wii Passwordhasbeenchanged = Contraseña ha sido cambiada
Prev = Anterior Passwordchange = Cambio Contraseña
PromptsButtons = Botones de consulta PowerofftheWii = Apagar la Wii
ReloadSD = Recargar SD Prev = Ant.
RenameGameonWBFS = Renombrar juego en WBFS PromptsButtons = Botones
Restart = Reiniciar ReloadSD = Recargar SD
Return = Volver RenameGameonWBFS = Renombrar juego en WBFS
ReturntoWii = Volver al menú de Wii Restart = Reiniciar
Right = Derecha Return = Volver
Rumble = Vibración ReturntoWii = Volver a Menú Wii
QuickBoot = Inicio rápido Right = Derecha
Save = Guardar Rumble = Vibración
SaveFailed = Fallo al guardar QuickBoot = Inicio Rápido
Specialthanksto = Muchas gracias a Save = Guardar
For = por SaveFailed = Guardado fallido
theUSBLoaderandreleasingthesourcecodethe = y liberar el código fuente Specialthanksto = Agradecimientos
secondsleft = Segundos que faltan Titlestxtpath = Ruta Titles.txt
SelectthePartition = Selecciona la partición TitlestxtpathChanged = Ruta a titles.txt cambiada.
youwanttoformat = Quieres formatear Titlestxtpathchange = Cambio ruta titles.txt
settings = Ajustes For = por
ShutdowntoIdle = Apagar a Stand-By theUSBLoaderandreleasingthesourcecodethe = y liberar el código fuente
ShutdownSystem = Sistema de apagado secondsleft = segundos restantes
Success = Conseguido: SelectthePartition = Selecciona la partición
Successfullyinstalled = Instalado con exito: youwanttoformat = quieres formatear
Successfullydeleted = Borrado con exito: settings = Configuración
SuccessfullySaved = Guardado ShutdowntoIdle = Apagar a Idle
SystemDefault = Predeterm. consola ShutdownSystem = Apagar Sistema
ThemePath = Ruta a Temas Success = Exito:
ThemepathChanged = Ruta a temas cambiada Successfullyinstalled = Instalado exitósamente:
Themepathchange = Cambio de ruta a temas Successfullydeleted = Borrado exitósamente:
Try = Intentar SuccessfullySaved = Guardado exitósamente
Tooltips = Herramientas SystemDefault = Pred. Sistema
Timeleft = Tiempo pendiente: ThemePath = Ruta del Tema
Unlock = Desbloqueo ThemepathChanged = Ruta de Tema cambiada
Uninstall = Desinstalar Themepathchange = Cambio Ruta de Tema
USBLoaderisprotected = USB Loader GX está protegido Try = Intentar
USBDevicenotfound = Dispositivo USB no encontrado Tooltips = InfoBurbujas
VideoMode = Modo de video Timeleft = T. restante:
VIDTVPatch = Parcheo VIDTV Unlock = Desbloquear
Volume = Volumen Unicodefix = Arreg. Unicode
Waiting = Esperando... Uninstall = Desinstalar
WaitingforUSBDevice = Esperando al dispositivo USB USBLoaderisprotected = USB Loader GX está protegido
WidescreenFix = Ajuste panorámico USBDevicenotfound = USB no encontrado
WiiMenu = Menú Wii VideoMode = Modo Video
WrongPassword = Contraseña errónea VIDTVPatch = Parche VIDTV
Yes = Si Volume = Volumen
YoudonthavecIOS = No tienes cIOS 222 Waiting = Esperando...
Japanese = Japonés WaitingforUSBDevice = Esperando por Dispositivo USB
German = Alemán WidescreenFix = Arreg. Widescreen
English = Inglés WiiMenu = Menú de Wii
French = Francés WrongPassword = Contraseña incorrecta
Spanish = Español Yes = Si
Italian = Italiano YoudonthavecIOS = No tienes un cIOS222
Dutch = Holandés Japanese = Japonés
SChinese = Chino Simplificado German = Alemán
TChinese = Chino Tradicional English = Inglés
Korean = Coreano French = Francés
keyboard = Teclado Spanish = Español
Unicodefix = Párche Unicode Italian = Italiano
Filenotfound = Fichero no encontrado. Dutch = Holandés
Loadingstandardlanguage = Cargando idioma predeterminado. SChinese = Chino Simplif.
Titlestxtpath = Ruta a Titles.txt TChinese = Chino Tradic.
TitlestxtpathChanged = Ruta a titles.txt cambiada. Korean = Coreano
Titlestxtpathchange = Cambiar ruta a titles.txt

View File

@ -8,15 +8,15 @@ BacktoHBCorWiiMenu =
BacktoLoader = 返回 Loader BacktoLoader = 返回 Loader
BacktoWiiMenu = 返回 Wii 系統選單 BacktoWiiMenu = 返回 Wii 系統選單
BootStandard = 啟動/標準 BootStandard = 啟動/標準
BothBoth = 全部 Both = 全部顯示
Cantcreatedirectory = 無法產生目錄 Cantcreatedirectory = 無法產生目錄
Cancel = 取消 Cancel = 取消
Cantbeformated = 無法格式化 Cantbeformated = 無法格式化
Cantdelete = 無法刪除: Cantdelete = 無法刪除:
ClicktoDownloadCovers = 點擊下載封面 ClicktoDownloadCovers = 點擊進行封面下載
Clock = 時鐘 Clock = 時鐘
Continueinstallgame = 繼續安裝遊戲? Continueinstallgame = 繼續安裝遊戲?
ConsoleDefault = 控制台預設 ConsoleDefault = 主機預設值
Consoleshouldbeunlockedtomodifyit = 需解鎖以開啟設定功能. Consoleshouldbeunlockedtomodifyit = 需解鎖以開啟設定功能.
ConsoleLocked = 控制台鎖定 ConsoleLocked = 控制台鎖定
CorrectPassword = 密碼正確 CorrectPassword = 密碼正確
@ -65,17 +65,18 @@ Youneedtoformatapartition =
Format = 格式化 Format = 格式化
Formattingpleasewait = 格式化中, 請稍候... Formattingpleasewait = 格式化中, 請稍候...
formated = 完成格式化! formated = 完成格式化!
free = 剩餘 free =
FreeSpace = 剩餘空間 FreeSpace = 剩餘空間
FullShutdown = 完全關機 FullShutdown = 完全關機
GameID = 遊戲代碼 GameID = 遊戲代碼
Games = 遊戲 Games = 遊戲數量
Gameisalreadyinstalled = 已安裝過遊戲: Gameisalreadyinstalled = 已安裝過遊戲:
GameRegion = 區域 GameRegion = 遊戲區碼
GameSize = 遊戲容量 GameSize = 遊戲容量
GoBack = 返回 GoBack = 返回
GotoPage = 前往頁面 //GotoPage = 前往頁面
HowtoShutdown = 如何關機? HowtoShutdown = 如何關機?
Keyboard = 鍵盤
Language = 語言 Language = 語言
Langchange = 變更語言 Langchange = 變更語言
Left = 左 Left = 左
@ -86,9 +87,9 @@ LockConsole =
MP3Menu = MP3 選單 MP3Menu = MP3 選單
Missingfiles = 遺失的檔案 Missingfiles = 遺失的檔案
Networkiniterror = 網路啟動錯誤 Networkiniterror = 網路啟動錯誤
Neither = 皆 Neither = 皆不顯示
Next = 往後 Next = 往後
No = 否 No = 否
Nofilemissing = 沒有缺少的檔案! Nofilemissing = 沒有缺少的檔案!
NoHDDfound = 找不到硬碟! NoHDDfound = 找不到硬碟!
NoSDcardinserted = 未插入 SD 卡! NoSDcardinserted = 未插入 SD 卡!
@ -101,7 +102,7 @@ NotaWiiDisc =
NoUSBDevicefound = 找不到 USB 裝置. NoUSBDevicefound = 找不到 USB 裝置.
Notenoughfreespace = 剩餘空間不足! Notenoughfreespace = 剩餘空間不足!
notset = 未設定 notset = 未設定
of = of = 剩餘空間 總容量
OFF = 關閉 OFF = 關閉
OfficialSite = 官方網址 OfficialSite = 官方網址
ok = 確定 ok = 確定
@ -138,7 +139,7 @@ Success =
Successfullyinstalled = 成功的安裝: Successfullyinstalled = 成功的安裝:
Successfullydeleted = 成功的刪除: Successfullydeleted = 成功的刪除:
SuccessfullySaved = 儲存成功 SuccessfullySaved = 儲存成功
SystemDefault = 系統預設 SystemDefault = 系統預設
ThemePath = 背景主題 ThemePath = 背景主題
ThemepathChanged = 背景主題路徑已變更 ThemepathChanged = 背景主題路徑已變更
Themepathchange = 變更背景主題路徑 Themepathchange = 變更背景主題路徑
@ -169,7 +170,6 @@ Dutch =
SChinese = 簡體中文 SChinese = 簡體中文
TChinese = 繁體中文 TChinese = 繁體中文
Korean = 韓文 Korean = 韓文
keyboard = 鍵盤
Unicodefix = Unicode 修正 Unicodefix = Unicode 修正
Filenotfound = 找不到檔案 Filenotfound = 找不到檔案
Loadingstandardlanguage = 載入標準語言 Loadingstandardlanguage = 載入標準語言

File diff suppressed because one or more lines are too long

View File

@ -234,6 +234,8 @@ void CFG_Default(int widescreen) // -1 = non forced Mode
snprintf(CFG.titlestxt_path, sizeof(CFG.titlestxt_path), "SD:/config/");//default path for disc images snprintf(CFG.titlestxt_path, sizeof(CFG.titlestxt_path), "SD:/config/");//default path for disc images
snprintf(CFG.unlockCode, sizeof(CFG.unlockCode), "ab121b"); // default password snprintf(CFG.unlockCode, sizeof(CFG.unlockCode), "ab121b"); // default password
snprintf(CFG.language_path, sizeof(CFG.language_path), "SD:/config/language/"); snprintf(CFG.language_path, sizeof(CFG.language_path), "SD:/config/language/");
snprintf(CFG.oggload_path, sizeof(CFG.oggload_path), "SD:/config/backgroundmusic/");
sprintf(CFG.ogg_path, "notset");
CFG.parentalcontrol = 0; CFG.parentalcontrol = 0;
CFG.maxcharacters = 38; CFG.maxcharacters = 38;
@ -483,6 +485,14 @@ void cfg_set(char *name, char *val)
strcopy(CFG.language_path, val, sizeof(CFG.language_path)); strcopy(CFG.language_path, val, sizeof(CFG.language_path));
return; return;
} }
if (strcmp(name, "oggload_path") == 0) {
strcopy(CFG.oggload_path, val, sizeof(CFG.oggload_path));
return;
}
if (strcmp(name, "ogg_path") == 0) {
strcopy(CFG.ogg_path, val, sizeof(CFG.ogg_path));
return;
}
cfg_int("parentalcontrol", &CFG.parentalcontrol, 4); cfg_int("parentalcontrol", &CFG.parentalcontrol, 4);
cfg_bool("godmode", &CFG.godmode); cfg_bool("godmode", &CFG.godmode);
@ -1017,12 +1027,14 @@ bool cfg_save_global()// save global settings
} }
fprintf(f, "disc_path = %s\n ", CFG.disc_path); fprintf(f, "disc_path = %s\n ", CFG.disc_path);
fprintf(f, "language_path = %s\n ", CFG.language_path); fprintf(f, "language_path = %s\n ", CFG.language_path);
fprintf(f, "oggload_path = %s\n ", CFG.oggload_path);
fprintf(f, "titlestxt_path = %s\n ", CFG.titlestxt_path); fprintf(f, "titlestxt_path = %s\n ", CFG.titlestxt_path);
if(!strcmp("", Settings.unlockCode)) { if(!strcmp("", Settings.unlockCode)) {
fprintf(f, "godmode = %d\n ", CFG.godmode); fprintf(f, "godmode = %d\n ", CFG.godmode);
} else { } else {
fprintf(f, "godmode = %d\n ", 0); fprintf(f, "godmode = %d\n ", 0);
} }
fprintf(f, "ogg_path = %s\n ", CFG.ogg_path);
fclose(f); fclose(f);
return true; return true;
} }

View File

@ -70,6 +70,8 @@ struct CFG
char disc_path[100]; char disc_path[100];
char titlestxt_path[100]; char titlestxt_path[100];
char language_path[100]; char language_path[100];
char oggload_path[100];
char ogg_path[150];
short keyset; short keyset;
}; };

View File

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

View File

@ -35,6 +35,8 @@ snprintf(LANGUAGE.t3Covers, sizeof(LANGUAGE.t3Covers), "3D Covers");
snprintf(LANGUAGE.Areyousure, sizeof(LANGUAGE.Areyousure), "Are you sure?"); snprintf(LANGUAGE.Areyousure, sizeof(LANGUAGE.Areyousure), "Are you sure?");
snprintf(LANGUAGE.AutoPatch, sizeof(LANGUAGE.AutoPatch), "AutoPatch"); snprintf(LANGUAGE.AutoPatch, sizeof(LANGUAGE.AutoPatch), "AutoPatch");
snprintf(LANGUAGE.Back, sizeof(LANGUAGE.Back), "Back"); snprintf(LANGUAGE.Back, sizeof(LANGUAGE.Back), "Back");
snprintf(LANGUAGE.Backgroundmusic, sizeof(LANGUAGE.Backgroundmusic), "Backgroundmusic");
snprintf(LANGUAGE.Backgroundmusicpath, sizeof(LANGUAGE.Backgroundmusicpath), "Backgroundmusic Path changed.");
snprintf(LANGUAGE.BacktoHBCorWiiMenu, sizeof(LANGUAGE.BacktoHBCorWiiMenu), "Back to HBC or Wii Menu"); snprintf(LANGUAGE.BacktoHBCorWiiMenu, sizeof(LANGUAGE.BacktoHBCorWiiMenu), "Back to HBC or Wii Menu");
snprintf(LANGUAGE.BacktoLoader, sizeof(LANGUAGE.BacktoLoader), "Back to Loader"); snprintf(LANGUAGE.BacktoLoader, sizeof(LANGUAGE.BacktoLoader), "Back to Loader");
snprintf(LANGUAGE.BacktoWiiMenu, sizeof(LANGUAGE.BacktoWiiMenu), "Back to Wii Menu"); snprintf(LANGUAGE.BacktoWiiMenu, sizeof(LANGUAGE.BacktoWiiMenu), "Back to Wii Menu");
@ -107,13 +109,13 @@ snprintf(LANGUAGE.Gameisalreadyinstalled, sizeof(LANGUAGE.Gameisalreadyinstalled
snprintf(LANGUAGE.GameRegion, sizeof(LANGUAGE.GameRegion), "Game Region"); snprintf(LANGUAGE.GameRegion, sizeof(LANGUAGE.GameRegion), "Game Region");
snprintf(LANGUAGE.GameSize, sizeof(LANGUAGE.GameSize), "Game Size"); snprintf(LANGUAGE.GameSize, sizeof(LANGUAGE.GameSize), "Game Size");
snprintf(LANGUAGE.GoBack, sizeof(LANGUAGE.GoBack), "Go Back"); snprintf(LANGUAGE.GoBack, sizeof(LANGUAGE.GoBack), "Go Back");
//snprintf(LANGUAGE.GotoPage, sizeof(LANGUAGE.GotoPage), "Go to Page");
snprintf(LANGUAGE.HowtoShutdown, sizeof(LANGUAGE.HowtoShutdown), "How to Shutdown?"); snprintf(LANGUAGE.HowtoShutdown, sizeof(LANGUAGE.HowtoShutdown), "How to Shutdown?");
snprintf(LANGUAGE.Language, sizeof(LANGUAGE.Language), "Game Language"); snprintf(LANGUAGE.Language, sizeof(LANGUAGE.Language), "Game Language");
snprintf(LANGUAGE.Left, sizeof(LANGUAGE.Left), "Left"); snprintf(LANGUAGE.Left, sizeof(LANGUAGE.Left), "Left");
snprintf(LANGUAGE.LikeSysMenu, sizeof(LANGUAGE.LikeSysMenu), "Like SysMenu"); snprintf(LANGUAGE.LikeSysMenu, sizeof(LANGUAGE.LikeSysMenu), "Like SysMenu");
snprintf(LANGUAGE.LoadingincIOS, sizeof(LANGUAGE.LoadingincIOS), "Loading in cIOS249"); snprintf(LANGUAGE.LoadingincIOS, sizeof(LANGUAGE.LoadingincIOS), "Loading in cIOS249");
snprintf(LANGUAGE.Loadingstandardlanguage, sizeof(LANGUAGE.Loadingstandardlanguage), "Loading standard language."); snprintf(LANGUAGE.Loadingstandardlanguage, sizeof(LANGUAGE.Loadingstandardlanguage), "Loading standard language.");
snprintf(LANGUAGE.Loadingstandardmusic, sizeof(LANGUAGE.Loadingstandardmusic), "Loading standard music.");
snprintf(LANGUAGE.Lock, sizeof(LANGUAGE.Lock), "Lock"); snprintf(LANGUAGE.Lock, sizeof(LANGUAGE.Lock), "Lock");
snprintf(LANGUAGE.LockConsole, sizeof(LANGUAGE.LockConsole), "Lock Console"); snprintf(LANGUAGE.LockConsole, sizeof(LANGUAGE.LockConsole), "Lock Console");
snprintf(LANGUAGE.MP3Menu, sizeof(LANGUAGE.MP3Menu), "MP3 Menu"); snprintf(LANGUAGE.MP3Menu, sizeof(LANGUAGE.MP3Menu), "MP3 Menu");
@ -133,6 +135,7 @@ snprintf(LANGUAGE.Normal, sizeof(LANGUAGE.Normal), "Normal");
snprintf(LANGUAGE.NotaWiiDisc, sizeof(LANGUAGE.NotaWiiDisc), "Not a Wii Disc"); snprintf(LANGUAGE.NotaWiiDisc, sizeof(LANGUAGE.NotaWiiDisc), "Not a Wii Disc");
snprintf(LANGUAGE.NoUSBDevicefound, sizeof(LANGUAGE.NoUSBDevicefound), "No USB Device found."); snprintf(LANGUAGE.NoUSBDevicefound, sizeof(LANGUAGE.NoUSBDevicefound), "No USB Device found.");
snprintf(LANGUAGE.Notenoughfreespace, sizeof(LANGUAGE.Notenoughfreespace), "Not enough free space!"); snprintf(LANGUAGE.Notenoughfreespace, sizeof(LANGUAGE.Notenoughfreespace), "Not enough free space!");
snprintf(LANGUAGE.Notasupportedformat, sizeof(LANGUAGE.Notasupportedformat), "Not supported format!");
snprintf(LANGUAGE.notset, sizeof(LANGUAGE.notset), "not set"); snprintf(LANGUAGE.notset, sizeof(LANGUAGE.notset), "not set");
snprintf(LANGUAGE.of, sizeof(LANGUAGE.of), "of"); snprintf(LANGUAGE.of, sizeof(LANGUAGE.of), "of");
snprintf(LANGUAGE.OFF, sizeof(LANGUAGE.OFF), "OFF"); snprintf(LANGUAGE.OFF, sizeof(LANGUAGE.OFF), "OFF");
@ -161,9 +164,11 @@ snprintf(LANGUAGE.Specialthanksto, sizeof(LANGUAGE.Specialthanksto), "Special th
snprintf(LANGUAGE.For, sizeof(LANGUAGE.For), "for"); snprintf(LANGUAGE.For, sizeof(LANGUAGE.For), "for");
snprintf(LANGUAGE.theUSBLoaderandreleasingthesourcecode, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode), "and releasing the source code"); snprintf(LANGUAGE.theUSBLoaderandreleasingthesourcecode, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode), "and releasing the source code");
snprintf(LANGUAGE.secondsleft, sizeof(LANGUAGE.secondsleft), "seconds left"); snprintf(LANGUAGE.secondsleft, sizeof(LANGUAGE.secondsleft), "seconds left");
snprintf(LANGUAGE.Setasbackgroundmusic, sizeof(LANGUAGE.Setasbackgroundmusic), "Set as backgroundmusic?");
snprintf(LANGUAGE.SelectthePartition, sizeof(LANGUAGE.SelectthePartition), "Select the Partition"); snprintf(LANGUAGE.SelectthePartition, sizeof(LANGUAGE.SelectthePartition), "Select the Partition");
snprintf(LANGUAGE.Specialthanksto, sizeof(LANGUAGE.Specialthanksto), "Special thanks to"); snprintf(LANGUAGE.Specialthanksto, sizeof(LANGUAGE.Specialthanksto), "Special thanks to");
snprintf(LANGUAGE.youwanttoformat, sizeof(LANGUAGE.youwanttoformat), "you want to format"); snprintf(LANGUAGE.youwanttoformat, sizeof(LANGUAGE.youwanttoformat), "you want to format");
snprintf(LANGUAGE.Standard, sizeof(LANGUAGE.Standard), "Standard");
snprintf(LANGUAGE.settings, sizeof(LANGUAGE.settings), "Settings"); snprintf(LANGUAGE.settings, sizeof(LANGUAGE.settings), "Settings");
snprintf(LANGUAGE.ShutdowntoIdle, sizeof(LANGUAGE.ShutdowntoIdle), "Shutdown to Idle"); snprintf(LANGUAGE.ShutdowntoIdle, sizeof(LANGUAGE.ShutdowntoIdle), "Shutdown to Idle");
snprintf(LANGUAGE.ShutdownSystem, sizeof(LANGUAGE.ShutdownSystem), "Shutdown System"); snprintf(LANGUAGE.ShutdownSystem, sizeof(LANGUAGE.ShutdownSystem), "Shutdown System");
@ -244,6 +249,14 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.Back, val, sizeof(LANGUAGE.Back)); strcopy(LANGUAGE.Back, val, sizeof(LANGUAGE.Back));
return; return;
} }
if (strcmp(name, "Backgroundmusic") == 0) {
strcopy(LANGUAGE.Backgroundmusic, val, sizeof(LANGUAGE.Backgroundmusic));
return;
}
if (strcmp(name, "Backgroundmusicpath") == 0) {
strcopy(LANGUAGE.Backgroundmusicpath, val, sizeof(LANGUAGE.Backgroundmusicpath));
return;
}
if (strcmp(name, "BacktoHBCorWiiMenu") == 0) { if (strcmp(name, "BacktoHBCorWiiMenu") == 0) {
strcopy(LANGUAGE.BacktoHBCorWiiMenu, val, sizeof(LANGUAGE.BacktoHBCorWiiMenu)); strcopy(LANGUAGE.BacktoHBCorWiiMenu, val, sizeof(LANGUAGE.BacktoHBCorWiiMenu));
return; return;
@ -569,6 +582,10 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.Loadingstandardlanguage, val, sizeof(LANGUAGE.Loadingstandardlanguage)); strcopy(LANGUAGE.Loadingstandardlanguage, val, sizeof(LANGUAGE.Loadingstandardlanguage));
return; return;
} }
if (strcmp(name, "Loadingstandardmusic") == 0) {
strcopy(LANGUAGE.Loadingstandardmusic, val, sizeof(LANGUAGE.Loadingstandardmusic));
return;
}
if (strcmp(name, "Lock") == 0) { if (strcmp(name, "Lock") == 0) {
strcopy(LANGUAGE.Lock, val, sizeof(LANGUAGE.Lock)); strcopy(LANGUAGE.Lock, val, sizeof(LANGUAGE.Lock));
return; return;
@ -645,6 +662,10 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.Notenoughfreespace, val, sizeof(LANGUAGE.Notenoughfreespace)); strcopy(LANGUAGE.Notenoughfreespace, val, sizeof(LANGUAGE.Notenoughfreespace));
return; return;
} }
if (strcmp(name, "Notasupportedformat") == 0) {
strcopy(LANGUAGE.Notasupportedformat, val, sizeof(LANGUAGE.Notasupportedformat));
return;
}
if (strcmp(name, "notset") == 0) { if (strcmp(name, "notset") == 0) {
strcopy(LANGUAGE.notset, val, sizeof(LANGUAGE.notset)); strcopy(LANGUAGE.notset, val, sizeof(LANGUAGE.notset));
return; return;
@ -765,6 +786,10 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.settings, val, sizeof(LANGUAGE.settings)); strcopy(LANGUAGE.settings, val, sizeof(LANGUAGE.settings));
return; return;
} }
if (strcmp(name, "Setasbackgroundmusic") == 0) {
strcopy(LANGUAGE.Setasbackgroundmusic, val, sizeof(LANGUAGE.Setasbackgroundmusic));
return;
}
if (strcmp(name, "ShutdowntoIdle") == 0) { if (strcmp(name, "ShutdowntoIdle") == 0) {
strcopy(LANGUAGE.ShutdowntoIdle, val, sizeof(LANGUAGE.ShutdowntoIdle)); strcopy(LANGUAGE.ShutdowntoIdle, val, sizeof(LANGUAGE.ShutdowntoIdle));
return; return;
@ -773,6 +798,10 @@ void language_set(char *name, char *val)
strcopy(LANGUAGE.ShutdownSystem, val, sizeof(LANGUAGE.ShutdownSystem)); strcopy(LANGUAGE.ShutdownSystem, val, sizeof(LANGUAGE.ShutdownSystem));
return; return;
} }
if (strcmp(name, "Standard") == 0) {
strcopy(LANGUAGE.Standard, val, sizeof(LANGUAGE.Standard));
return;
}
if (strcmp(name, "Success") == 0) { if (strcmp(name, "Success") == 0) {
strcopy(LANGUAGE.Success, val, sizeof(LANGUAGE.Success)); strcopy(LANGUAGE.Success, val, sizeof(LANGUAGE.Success));
return; return;

View File

@ -17,6 +17,8 @@ struct LANGUAGE
char Areyousure[50]; char Areyousure[50];
char AutoPatch[20]; char AutoPatch[20];
char Back[20]; char Back[20];
char Backgroundmusic[80];
char Backgroundmusicpath[100];
char BacktoHBCorWiiMenu[50]; char BacktoHBCorWiiMenu[50];
char BacktoLoader[50]; char BacktoLoader[50];
char BacktoWiiMenu[50]; char BacktoWiiMenu[50];
@ -97,6 +99,7 @@ struct LANGUAGE
char LikeSysMenu[50]; char LikeSysMenu[50];
char LoadingincIOS[50]; char LoadingincIOS[50];
char Loadingstandardlanguage[80]; char Loadingstandardlanguage[80];
char Loadingstandardmusic[80];
char Lock[30]; char Lock[30];
char LockConsole[50]; char LockConsole[50];
char MP3Menu[40]; char MP3Menu[40];
@ -116,6 +119,7 @@ struct LANGUAGE
char NotaWiiDisc[40]; char NotaWiiDisc[40];
char NoUSBDevicefound[50]; char NoUSBDevicefound[50];
char Notenoughfreespace[50]; char Notenoughfreespace[50];
char Notasupportedformat[100];
char notset[40]; char notset[40];
char of[30]; char of[30];
char OFF[30]; char OFF[30];
@ -148,6 +152,8 @@ struct LANGUAGE
char SelectthePartition[50]; char SelectthePartition[50];
char youwanttoformat[50]; char youwanttoformat[50];
char settings[50]; char settings[50];
char Setasbackgroundmusic[90];
char Standard[30];
char ShutdowntoIdle[50]; char ShutdowntoIdle[50];
char ShutdownSystem[50]; char ShutdownSystem[50];
char Success[30]; char Success[30];

View File

@ -131,6 +131,8 @@ class GuiSound
~GuiSound(); ~GuiSound();
//!Start sound playback //!Start sound playback
void Play(); void Play();
//!Start sound playback from ogg file
int PlayOggFile(char * path);
//!Stop sound playback //!Stop sound playback
void Stop(); void Stop();
//!Pause sound playback //!Pause sound playback
@ -146,6 +148,11 @@ class GuiSound
//!Set the sound to loop playback (only applies to OGG) //!Set the sound to loop playback (only applies to OGG)
//!\param l Loop (true to loop) //!\param l Loop (true to loop)
void SetLoop(bool l); void SetLoop(bool l);
//!Get the playing time in ms for that moment (only applies to OGG)
s32 GetPlayTime();
//!Set the starting point or playtime for skipping (only applies to OGG)
//!\param time in ms
void SetPlayTime(s32 time);
protected: protected:
const u8 * sound; //!< Pointer to the sound data const u8 * sound; //!< Pointer to the sound data
int type; //!< Sound format type (SOUND_PCM or SOUND_OGG) int type; //!< Sound format type (SOUND_PCM or SOUND_OGG)

View File

@ -42,6 +42,38 @@ GuiSound::~GuiSound()
StopOgg(); StopOgg();
} }
int GuiSound::PlayOggFile(char * path)
{ /*
u32 filesize = 0;
char * bufferogg = NULL;
size_t resultogg;
FILE * pFile;
pFile = fopen (path, "rb");
// get file size:
fseek (pFile , 0 , SEEK_END);
filesize = ftell (pFile);
rewind (pFile);
// allocate memory to contain the whole file:
bufferogg = (char*) malloc (sizeof(char)*filesize);
if (bufferogg == NULL) {fputs (" Memory error",stderr); exit (2);}
// copy the file into the buffer:
resultogg = fread (bufferogg,1,filesize,pFile);
if (resultogg != filesize) {fputs (" Reading error",stderr); exit (3);}
fclose (pFile);
sound = (const u8 *) bufferogg;
length = filesize;
*/
int ret = PlayOggFromFile(path, loop);
SetVolumeOgg(255*(volume/100.0));
return ret;
}
void GuiSound::Play() void GuiSound::Play()
{ {
int vol; int vol;
@ -57,7 +89,7 @@ void GuiSound::Play()
break; break;
case SOUND_OGG: case SOUND_OGG:
voice = 0; voice = ASND_GetFirstUnusedVoice();
if(loop) if(loop)
PlayOgg(mem_open((char *)sound, length), 0, OGG_INFINITE_TIME); PlayOgg(mem_open((char *)sound, length), 0, OGG_INFINITE_TIME);
else else
@ -151,3 +183,13 @@ void GuiSound::SetLoop(bool l)
{ {
loop = l; loop = l;
} }
s32 GuiSound::GetPlayTime()
{
return GetTimeOgg();
}
void GuiSound::SetPlayTime(s32 time_pos)
{
SetTimeOgg(time_pos);
}

View File

@ -63,7 +63,6 @@ static GuiText sizeTxt(sizeshow, 26, (GXColor){THEME.prompttxt_r, THEME.prompttx
static GuiText *GameIDTxt = NULL; static GuiText *GameIDTxt = NULL;
static GuiText *GameRegionTxt = NULL; static GuiText *GameRegionTxt = NULL;
static GuiSound * bgMusic = NULL; static GuiSound * bgMusic = NULL;
static GuiSound * creditsMusic = NULL;
static wbfs_t *hdd = NULL; static wbfs_t *hdd = NULL;
static u32 gameCnt = 0; static u32 gameCnt = 0;
static s32 gameSelected = 0, gameStart = 0; static s32 gameSelected = 0, gameStart = 0;
@ -170,12 +169,14 @@ HaltGui()
static void WindowCredits(void * ptr) static void WindowCredits(void * ptr)
{ {
int angle = 0; int angle = 0;
GuiSound * creditsMusic = NULL;
if(btnLogo->GetState() != STATE_CLICKED) { if(btnLogo->GetState() != STATE_CLICKED) {
return; return;
} }
s32 thetimeofbg = bgMusic->GetPlayTime();
StopOgg();
bgMusic->Stop();
creditsMusic = new GuiSound(credits_music_ogg, credits_music_ogg_size, SOUND_OGG, 55); creditsMusic = new GuiSound(credits_music_ogg, credits_music_ogg_size, SOUND_OGG, 55);
creditsMusic->SetVolume(55); creditsMusic->SetVolume(55);
creditsMusic->SetLoop(1); creditsMusic->SetLoop(1);
@ -374,8 +375,14 @@ static void WindowCredits(void * ptr)
delete txt[i]; delete txt[i];
delete creditsMusic; delete creditsMusic;
bgMusic->SetLoop(1);
bgMusic->Play(); if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
bgMusic->SetPlayTime(thetimeofbg);
SetVolumeOgg(255*(vol/100.0));
} }
/**************************************************************************** /****************************************************************************
@ -758,7 +765,7 @@ WindowExitPrompt(const char *title, const char *msg, const char *btn1Label,
closeBtn.SetLabel(&btn1Txt); closeBtn.SetLabel(&btn1Txt);
closeBtn.SetRumble(false); closeBtn.SetRumble(false);
closeBtn.SetEffect(EFFECT_SLIDE_TOP | EFFECT_SLIDE_IN, 50); closeBtn.SetEffect(EFFECT_SLIDE_TOP | EFFECT_SLIDE_IN, 50);
GuiImage btn1Img(&top); GuiImage btn1Img(&top);
GuiImage btn1OverImg(&topOver); GuiImage btn1OverImg(&topOver);
GuiButton btn1(top.GetWidth(), top.GetHeight()); GuiButton btn1(top.GetWidth(), top.GetHeight());
@ -817,7 +824,7 @@ WindowExitPrompt(const char *title, const char *msg, const char *btn1Label,
btn2Txt.SetFontSize(22); btn2Txt.SetFontSize(22);
btn3Txt.SetFontSize(22); btn3Txt.SetFontSize(22);
GuiImage wiimoteImg(&wiimote); GuiImage wiimoteImg(&wiimote);
if (Settings.wsprompt == yes){wiimoteImg.SetWidescreen(CFG.widescreen);} if (Settings.wsprompt == yes){wiimoteImg.SetWidescreen(CFG.widescreen);}
wiimoteImg.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); wiimoteImg.SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
@ -982,7 +989,7 @@ int GameWindowPrompt()
char imgPath[100]; char imgPath[100];
snprintf(imgPath, sizeof(imgPath), "%sbutton_dialogue_box.png", CFG.theme_path); snprintf(imgPath, sizeof(imgPath), "%sbutton_dialogue_box.png", CFG.theme_path);
GuiImageData btnOutline(imgPath, button_dialogue_box_png); GuiImageData btnOutline(imgPath, button_dialogue_box_png);
snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_left.png", CFG.theme_path); snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_left.png", CFG.theme_path);
GuiImageData imgLeft(imgPath, startgame_arrow_left_png); GuiImageData imgLeft(imgPath, startgame_arrow_left_png);
snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_right.png", CFG.theme_path); snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_right.png", CFG.theme_path);
@ -1795,7 +1802,7 @@ ProgressWindow(const char *title, const char *msg)
snprintf(imgPath, sizeof(imgPath), "%sprogressbar_outline.png", CFG.theme_path); snprintf(imgPath, sizeof(imgPath), "%sprogressbar_outline.png", CFG.theme_path);
GuiImageData progressbarOutline(imgPath, progressbar_outline_png); GuiImageData progressbarOutline(imgPath, progressbar_outline_png);
//GuiImageData progressbarOutline(progressbar_outline_png); //GuiImageData progressbarOutline(progressbar_outline_png);
GuiImage progressbarOutlineImg(&progressbarOutline); GuiImage progressbarOutlineImg(&progressbarOutline);
if (Settings.wsprompt == yes){ if (Settings.wsprompt == yes){
@ -2993,10 +3000,17 @@ static int MenuDiscList()
} }
else if(homeBtn.GetState() == STATE_CLICKED) else if(homeBtn.GetState() == STATE_CLICKED)
{ {
s32 thetimeofbg = bgMusic->GetPlayTime();
bgMusic->Stop(); bgMusic->Stop();
choice = WindowExitPrompt(LANGUAGE.ExitUSBISOLoader,0, LANGUAGE.BacktoLoader,LANGUAGE.WiiMenu,LANGUAGE.Back,0); choice = WindowExitPrompt(LANGUAGE.ExitUSBISOLoader,0, LANGUAGE.BacktoLoader,LANGUAGE.WiiMenu,LANGUAGE.Back,0);
bgMusic->SetLoop(1); if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play(); bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
bgMusic->SetPlayTime(thetimeofbg);
SetVolumeOgg(255*(vol/100.0));
if(choice == 3) if(choice == 3)
{ {
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0); // Back to System Menu SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0); // Back to System Menu
@ -3985,11 +3999,11 @@ static int MenuSettings()
sprintf(options2.name[1], "%s",LANGUAGE.AppLanguage); sprintf(options2.name[1], "%s",LANGUAGE.AppLanguage);
sprintf(options2.name[2], "%s",LANGUAGE.keyboard); sprintf(options2.name[2], "%s",LANGUAGE.keyboard);
sprintf(options2.name[3], "%s",LANGUAGE.Unicodefix); sprintf(options2.name[3], "%s",LANGUAGE.Unicodefix);
sprintf(options2.name[4], "%s",LANGUAGE.MP3Menu); sprintf(options2.name[4], "%s",LANGUAGE.Backgroundmusic);
sprintf(options2.name[5], "Under"); sprintf(options2.name[5], " ");
sprintf(options2.name[6], "Construction"); sprintf(options2.name[6], " ");
sprintf(options2.name[7], " "); sprintf(options2.name[7], " ");
sprintf(options2.name[8], " "); sprintf(options2.name[8], "%s",LANGUAGE.MP3Menu);
@ -4399,12 +4413,12 @@ static int MenuSettings()
if (strlen(CFG.language_path) < (9 + 3)) { if (strlen(CFG.language_path) < (9 + 3)) {
sprintf(cfgtext, "%s", CFG.language_path); sprintf(cfgtext, "%s", CFG.language_path);
} else { } else {
strncpy(cfgtext, CFG.language_path, 9); strncpy(cfgtext, CFG.language_path, 9);
cfgtext[9] = '\0'; cfgtext[9] = '\0';
strncat(cfgtext, "...", 3); strncat(cfgtext, "...", 3);
} }
sprintf(options2.value[1], "%s", cfgtext); sprintf(options2.value[1], "%s", cfgtext);
if (Settings.keyset == us) sprintf (options2.value[2],"QWERTY"); if (Settings.keyset == us) sprintf (options2.value[2],"QWERTY");
@ -4415,11 +4429,23 @@ static int MenuSettings()
else if (Settings.unicodefix == 1) sprintf (options2.value[3],"%s",LANGUAGE.TChinese); else if (Settings.unicodefix == 1) sprintf (options2.value[3],"%s",LANGUAGE.TChinese);
else if (Settings.unicodefix == 2) sprintf (options2.value[3],"%s",LANGUAGE.SChinese); else if (Settings.unicodefix == 2) sprintf (options2.value[3],"%s",LANGUAGE.SChinese);
sprintf(options2.value[4], " "); if(!strcmp("notset", CFG.ogg_path) || !strcmp("",CFG.oggload_path)) {
sprintf(options2.value[4], "%s", LANGUAGE.Standard);
} else {
if (strlen(CFG.ogg_path) < (9 + 3)) {
sprintf(cfgtext, "%s", CFG.ogg_path);
} else {
strncpy(cfgtext, CFG.ogg_path, 9);
cfgtext[9] = '\0';
strncat(cfgtext, "...", 3);
}
sprintf(options2.value[4], "%s", cfgtext);
}
sprintf(options2.value[5], " "); sprintf(options2.value[5], " ");
sprintf(options2.value[6], " "); sprintf(options2.value[6], " ");
sprintf(options2.value[7], " "); sprintf(options2.value[7], " ");
sprintf(options2.value[8], " "); sprintf(options2.value[8], "not working!");
ret = optionBrowser2.GetClickedOption(); ret = optionBrowser2.GetClickedOption();
@ -4511,6 +4537,10 @@ static int MenuSettings()
Settings.unicodefix++; Settings.unicodefix++;
break; break;
case 4: case 4:
menu = MENU_OGG;
pageToDisplay = 0;
break;
case 8:
menu = MENU_MP3; menu = MENU_MP3;
pageToDisplay = 0; pageToDisplay = 0;
break; break;
@ -4551,8 +4581,6 @@ static int MenuSettings()
pageToDisplay = 3; pageToDisplay = 3;
menu = MENU_NONE; menu = MENU_NONE;
page3Btn.ResetState(); page3Btn.ResetState();
//page1Btn.SetImage(&page1dImg);
//page2Btn.SetImage(&page2Img);
tabBtn.SetImage(&tab3Img); tabBtn.SetImage(&tab3Img);
break; break;
} }
@ -5024,7 +5052,329 @@ static int MenuCheck()
return menu; return menu;
} }
/****************************************************************************
* MenuOGG
***************************************************************************/
int MenuOGG()
{
int menu = MENU_NONE, cnt = 0;
int ret = 0, choice = 0;
int scrollon, nothingchanged = 0;
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM, vol);
GuiSound btnClick(button_click2_pcm, button_click2_pcm_size, SOUND_PCM, vol);
char imgPath[100];
snprintf(imgPath, sizeof(imgPath), "%sbutton_dialogue_box.png", CFG.theme_path);
GuiImageData btnOutline(imgPath, button_dialogue_box_png);
snprintf(imgPath, sizeof(imgPath), "%ssettings_background.png", CFG.theme_path);
GuiImageData settingsbg(imgPath, settings_background_png);
GuiTrigger trigA;
trigA.SetSimpleTrigger(-1, WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A, PAD_BUTTON_A);
GuiTrigger trigB;
trigB.SetButtonOnlyTrigger(-1, WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B, PAD_BUTTON_B);
GuiTrigger trigMinus;
trigMinus.SetButtonOnlyTrigger(-1, WPAD_BUTTON_MINUS | WPAD_CLASSIC_BUTTON_MINUS, 0);
GuiTrigger trigPlus;
trigPlus.SetButtonOnlyTrigger(-1, WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS, 0);
char fullpath[150];
char shortpath[35];
int countmp3 = GetFiles(CFG.oggload_path);
if(!strcmp("", CFG.oggload_path)) {
sprintf(shortpath, "%s", LANGUAGE.Standard);
} else if (strlen(CFG.oggload_path) < (27 + 3)) {
sprintf(shortpath, "%s", CFG.oggload_path);
}
else {
strncpy(shortpath, CFG.oggload_path, 27);
shortpath[27] = '\0';
strncat(shortpath, "...", 3);
}
GuiText titleTxt(shortpath, 24, (GXColor){0, 0, 0, 255});
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
titleTxt.SetPosition(0,0);
GuiButton pathBtn(300, 50);
pathBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
pathBtn.SetPosition(0,28);
pathBtn.SetLabel(&titleTxt);
pathBtn.SetSoundOver(&btnSoundOver);
pathBtn.SetSoundClick(&btnClick);
pathBtn.SetTrigger(&trigA);
pathBtn.SetEffectGrow();
GuiImage oggmenubackground(&settingsbg);
oggmenubackground.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
oggmenubackground.SetPosition(0, 0);
GuiText backBtnTxt(LANGUAGE.Back , 22, (GXColor){THEME.prompttxt_r, THEME.prompttxt_g, THEME.prompttxt_b, 255}); //{0, 0, 0, 255});
backBtnTxt.SetMaxWidth(btnOutline.GetWidth()-30);
GuiImage backBtnImg(&btnOutline);
if (Settings.wsprompt == yes){
backBtnImg.SetWidescreen(CFG.widescreen);}//////
GuiButton backBtn(btnOutline.GetWidth(), btnOutline.GetHeight());
backBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
backBtn.SetPosition(-180, 400);
backBtn.SetLabel(&backBtnTxt);
backBtn.SetImage(&backBtnImg);
backBtn.SetSoundOver(&btnSoundOver);
backBtn.SetSoundClick(&btnClick);
backBtn.SetTrigger(&trigA);
backBtn.SetTrigger(&trigB);
backBtn.SetEffectGrow();
customOptionList options2(300);
for (cnt = 0; cnt < countmp3; cnt++) {
snprintf(options2.value[cnt], 30, "%s", mp3files[cnt]);
sprintf (options2.name[cnt],"%i.", cnt+1);
}
options2.length = cnt;
if(cnt < 9) {
scrollon = 0;
} else {
scrollon = 1;
}
GuiCustomOptionBrowser optionBrowser4(396, 280, &options2, CFG.theme_path, "bg_options_settings.png", bg_options_settings_png, scrollon, 85);
optionBrowser4.SetPosition(0, 90);
optionBrowser4.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
optionBrowser4.SetCol2Position(45);
int songPlaying=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);
GuiImageData prev(imgPath, arrow_previous_png);
snprintf(imgPath, sizeof(imgPath), "%smp3_stop.png", CFG.theme_path);
GuiImageData stop(imgPath, mp3_stop_png);
snprintf(imgPath, sizeof(imgPath), "%smp3_pause.png", CFG.theme_path);
GuiImageData pause(imgPath, mp3_pause_png);
snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_right.png", CFG.theme_path);
GuiImageData play(imgPath, startgame_arrow_right_png);
GuiImage nextBtnImg(&next);
GuiButton nextBtn(next.GetWidth(), next.GetHeight());
nextBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
nextBtn.SetPosition(130, 400);
nextBtn.SetImage(&nextBtnImg);
nextBtn.SetSoundOver(&btnSoundOver);
nextBtn.SetSoundClick(&btnClick);
nextBtn.SetTrigger(&trigA);
nextBtn.SetEffectGrow();
GuiImage prevBtnImg(&prev);
prevBtnImg.SetWidescreen(CFG.widescreen);
GuiButton prevBtn(prev.GetWidth(), prev.GetHeight());
prevBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
prevBtn.SetPosition(-60, 400);
prevBtn.SetImage(&prevBtnImg);
prevBtn.SetSoundOver(&btnSoundOver);
prevBtn.SetSoundClick(&btnClick);
prevBtn.SetTrigger(&trigA);
prevBtn.SetEffectGrow();
GuiImage playBtnImg(&play);
playBtnImg.SetWidescreen(CFG.widescreen);
GuiButton playBtn(play.GetWidth(), play.GetHeight());
playBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
playBtn.SetPosition(72, 400);
playBtn.SetImage(&playBtnImg);
playBtn.SetSoundOver(&btnSoundOver);
playBtn.SetSoundClick(&btnClick);
playBtn.SetTrigger(&trigA);
playBtn.SetTrigger(&trigPlus);
playBtn.SetEffectGrow();
GuiImage stopBtnImg(&stop);
stopBtnImg.SetWidescreen(CFG.widescreen);
GuiButton stopBtn(stop.GetWidth(), stop.GetHeight());
stopBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
stopBtn.SetPosition(17, 400);
stopBtn.SetImage(&stopBtnImg);
stopBtn.SetSoundOver(&btnSoundOver);
stopBtn.SetSoundClick(&btnClick);
stopBtn.SetTrigger(&trigA);
stopBtn.SetTrigger(&trigMinus);
stopBtn.SetEffectGrow();
HaltGui();
GuiWindow w(screenwidth, screenheight);
w.Append(&oggmenubackground);
w.Append(&pathBtn);
w.Append(&backBtn);
w.Append(&playBtn);
w.Append(&nextBtn);
w.Append(&prevBtn);
w.Append(&stopBtn);
mainWindow->Append(&w);
mainWindow->Append(&optionBrowser4);
ResumeGui();
while(menu == MENU_NONE)
{
if (backBtn.GetState() == STATE_CLICKED) {
if(nothingchanged == 1 && countmp3 > 0) {
if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
}
menu = MENU_SETTINGS;
break;
}
if (pathBtn.GetState() == STATE_CLICKED) {
mainWindow->Remove(&optionBrowser4);
w.Remove(&backBtn);
w.Remove(&pathBtn);
w.Remove(&playBtn);
w.Remove(&nextBtn);
w.Remove(&prevBtn);
w.Remove(&stopBtn);
char entered[43] = "";
strncpy(entered, CFG.oggload_path, sizeof(entered));
int result = OnScreenKeyboard(entered,43,0);
mainWindow->Append(&optionBrowser4);
w.Append(&pathBtn);
w.Append(&backBtn);
w.Append(&playBtn);
w.Append(&nextBtn);
w.Append(&prevBtn);
w.Append(&stopBtn);
if ( result == 1 ) {
strncpy(CFG.oggload_path, entered, sizeof(CFG.oggload_path));
WindowPrompt(LANGUAGE.Backgroundmusicpath,0,LANGUAGE.ok,0,0,0);
if(isSdInserted() == 1) {
cfg_save_global();
if(!strcmp("", CFG.oggload_path)) {
bgMusic->Play();
}
menu = MENU_OGG;
break;
} else {
WindowPrompt(LANGUAGE.NoSDcardinserted, LANGUAGE.InsertaSDCardtosave, LANGUAGE.ok, 0,0,0);
}
}
if(countmp3 > 0) {
optionBrowser4.SetFocus(1);
}
pathBtn.ResetState();
}
ret = optionBrowser4.GetClickedOption();
if(ret>=0) {
choice = WindowPrompt(LANGUAGE.Setasbackgroundmusic,mp3files[ret],LANGUAGE.Yes,LANGUAGE.No,0,0);
if(choice == 1) {
snprintf(fullpath,150,"%s%s",CFG.oggload_path,mp3files[ret]);
choice = bgMusic->PlayOggFile(fullpath);
if(choice < 0) {
WindowPrompt(LANGUAGE.Notasupportedformat, LANGUAGE.Loadingstandardmusic, LANGUAGE.ok, 0,0,0);
sprintf(CFG.ogg_path, "notset");
bgMusic->Play();
} else {
snprintf(CFG.ogg_path, sizeof(CFG.ogg_path), "%s", fullpath);
cfg_save_global();
SetVolumeOgg(255*(vol/100.0));
nothingchanged = 0;
}
}
optionBrowser4.SetFocus(1);
}
if (playBtn.GetState() == STATE_CLICKED && countmp3 > 0) {
if(countmp3 > 0) {
ret = optionBrowser4.GetSelectedOption();
songPlaying=ret;
snprintf(fullpath, 150,"%s%s", CFG.oggload_path,mp3files[ret]);
choice = bgMusic->PlayOggFile(fullpath);
if(choice < 0) {
WindowPrompt(LANGUAGE.Notasupportedformat, LANGUAGE.Loadingstandardmusic, LANGUAGE.ok, 0,0,0);
if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
}
SetVolumeOgg(255*(vol/100.0));
songPlaying=ret;
nothingchanged = 1;
optionBrowser4.SetFocus(1);
}
playBtn.ResetState();
}
if(nextBtn.GetState() == STATE_CLICKED){
if(countmp3 > 0) {
songPlaying++;
if (songPlaying>(countmp3 - 1)){songPlaying=0;}
snprintf(fullpath,150,"%s%s", CFG.oggload_path,mp3files[songPlaying]);
choice = bgMusic->PlayOggFile(fullpath);
if(choice < 0) {
WindowPrompt(LANGUAGE.Notasupportedformat, LANGUAGE.Loadingstandardmusic, LANGUAGE.ok, 0,0,0);
if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
}
nothingchanged = 1;
optionBrowser4.SetFocus(1);
}
SetVolumeOgg(255*(vol/100.0));
nextBtn.ResetState();
}
if(prevBtn.GetState() == STATE_CLICKED) {
if(countmp3 > 0) {
songPlaying--;
if (songPlaying<0){songPlaying=(countmp3 - 1);}
snprintf(fullpath,150,"%s%s", CFG.oggload_path,mp3files[songPlaying]);
choice = bgMusic->PlayOggFile(fullpath);
if(choice < 0) {
WindowPrompt(LANGUAGE.Notasupportedformat, LANGUAGE.Loadingstandardmusic, LANGUAGE.ok, 0,0,0);
if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
}
nothingchanged = 1;
optionBrowser4.SetFocus(1);
}
SetVolumeOgg(255*(vol/100.0));
prevBtn.ResetState();
}
if(stopBtn.GetState() == STATE_CLICKED) {
if(countmp3 > 0) {
StopOgg();
nothingchanged = 1;
optionBrowser4.SetFocus(1);
}
stopBtn.ResetState();
}
}
HaltGui();
mainWindow->Remove(&optionBrowser4);
mainWindow->Remove(&w);
ResumeGui();
return menu;
}
/****************************************************************************
* MenuMp3
***************************************************************************/
int MenuMp3() int MenuMp3()
{ {
int menu = MENU_NONE, cnt = 0; int menu = MENU_NONE, cnt = 0;
@ -5102,8 +5452,6 @@ int MenuMp3()
snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_right.png", CFG.theme_path); snprintf(imgPath, sizeof(imgPath), "%sstartgame_arrow_right.png", CFG.theme_path);
GuiImageData play(imgPath, startgame_arrow_right_png); GuiImageData play(imgPath, startgame_arrow_right_png);
GuiImage nextBtnImg(&next); GuiImage nextBtnImg(&next);
GuiButton nextBtn(next.GetWidth(), next.GetHeight()); GuiButton nextBtn(next.GetWidth(), next.GetHeight());
nextBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); nextBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
@ -5241,8 +5589,6 @@ int MenuMp3()
mainWindow->Remove(&optionBrowser4); mainWindow->Remove(&optionBrowser4);
mainWindow->Remove(&w); mainWindow->Remove(&w);
ResumeGui(); ResumeGui();
return menu;
return menu; return menu;
} }
@ -5286,11 +5632,17 @@ int MainMenu(int menu)
bgMusic = new GuiSound(bg_music_ogg, bg_music_ogg_size, SOUND_OGG, vol); bgMusic = new GuiSound(bg_music_ogg, bg_music_ogg_size, SOUND_OGG, vol);
bgMusic->SetVolume(vol); bgMusic->SetVolume(vol);
bgMusic->SetLoop(1); //loop music bgMusic->SetLoop(1); //loop music
bgMusic->Play(); // startup music // startup music
if(!strcmp("", CFG.oggload_path) || !strcmp("notset", CFG.ogg_path)) {
bgMusic->Play();
} else {
bgMusic->PlayOggFile(CFG.ogg_path);
}
while(currentMenu != MENU_EXIT) while(currentMenu != MENU_EXIT)
{ {
bgMusic->SetVolume(vol); SetVolumeOgg(255*(vol/100.0));
switch (currentMenu) switch (currentMenu)
{ {
case MENU_CHECK: case MENU_CHECK:
@ -5311,6 +5663,9 @@ int MainMenu(int menu)
case MENU_MP3: case MENU_MP3:
currentMenu = MenuMp3(); currentMenu = MenuMp3();
break; break;
case MENU_OGG:
currentMenu = MenuOGG();
break;
default: // unrecognized menu default: // unrecognized menu
currentMenu = MenuCheck(); currentMenu = MenuCheck();
break; break;

View File

@ -25,6 +25,7 @@ enum
MENU_INSTALL, MENU_INSTALL,
MENU_CHECK, MENU_CHECK,
MENU_GAME_SETTINGS, MENU_GAME_SETTINGS,
MENU_OGG,
MENU_MP3 MENU_MP3
}; };

View File

@ -134,7 +134,7 @@ if (dir == NULL) //If empty
} }
} }
qsort(mp3files, countmp3, sizeof(char[80]), filenamescmp); qsort(mp3files, countmp3, sizeof(char[70]), filenamescmp);
return countmp3; return countmp3;
} }

View File

@ -6,7 +6,7 @@ extern "C"
{ {
#endif #endif
char mp3files[500][80]; char mp3files[300][70];
void StopMp3(); void StopMp3();
void SetMp3Volume(u32 vol); void SetMp3Volume(u32 vol);

View File

@ -25,7 +25,10 @@
*/ */
#include "oggplayer.h" #include "oggplayer.h"
#include "mp3s.h"
#include <gccore.h> #include <gccore.h>
#include <malloc.h>
#include <stdlib.h>
/* OGG control */ /* OGG control */
@ -287,6 +290,43 @@ int PlayOgg(int fd, int time_pos, int mode)
return 0; return 0;
} }
int PlayOggFromFile(char * path, int loop) {
u32 filesize = 0;
char * bufferogg = NULL;
size_t resultogg;
FILE * pFile;
pFile = fopen (path, "rb");
//Check that pFile exist
if (pFile==NULL){
return -1;
}
// get file size:
fseek (pFile , 0 , SEEK_END);
filesize = ftell (pFile);
rewind (pFile);
// allocate memory to contain the whole file:
bufferogg = (char*) malloc (sizeof(char)*filesize);
if (bufferogg == NULL) {fputs (" Memory error",stderr); exit (2);}
// copy the file into the buffer:
resultogg = fread (bufferogg,1,filesize,pFile);
if (resultogg != filesize) {fputs (" Reading error",stderr); exit (3);}
fclose (pFile);
if (loop)
return PlayOgg(mem_open((char *)bufferogg, filesize), 0, OGG_INFINITE_TIME);
else
return PlayOgg(mem_open((char *)bufferogg, filesize), 0, OGG_ONE_TIME);
}
void PauseOgg(int pause) void PauseOgg(int pause)
{ {
if (pause) if (pause)
@ -325,6 +365,7 @@ int StatusOgg()
void SetVolumeOgg(int volume) void SetVolumeOgg(int volume)
{ {
private_ogg.volume = volume; private_ogg.volume = volume;
SND_Pause(0);
SND_ChangeVolumeVoice(0, volume, volume); SND_ChangeVolumeVoice(0, volume, volume);
} }

View File

@ -68,6 +68,12 @@ extern "C"
int PlayOgg(int fd, int time_pos, int mode); int PlayOgg(int fd, int time_pos, int mode);
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* int PlayOgg(char * path, int loop);
Just give the function the full device+path to OGG to play it
loop = 1 for Loop and 0 for one time playing
*/
int PlayOggFromFile(char * path, int loop);
/*------------------------------------------------------------------------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* void StopOgg(); /* void StopOgg();