mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
-fixed possible codedump
-updated german.ini
This commit is contained in:
parent
f527735c54
commit
6e9b705ce2
@ -2339,8 +2339,6 @@ void CMenu::_stopSounds(void)
|
||||
}
|
||||
m_btnMgr.stopSounds();
|
||||
m_cf.stopSound();
|
||||
|
||||
m_music.Stop();
|
||||
m_gameSound.Stop();
|
||||
}
|
||||
|
||||
|
@ -449,6 +449,7 @@ void CMenu::_game(bool launch)
|
||||
FILE *file = fopen(videoPath.c_str(), "rb");
|
||||
if(file)
|
||||
{
|
||||
m_music.StopAndSetPos();
|
||||
m_gameSound.Stop();
|
||||
m_banner->SetShowBanner(false);
|
||||
fclose(file);
|
||||
@ -470,7 +471,6 @@ void CMenu::_game(bool launch)
|
||||
}
|
||||
movie.Stop();
|
||||
_showGame();
|
||||
m_music.Play();
|
||||
m_video_playing = false;
|
||||
m_banner->SetShowBanner(true);
|
||||
if(!m_gameSound.IsPlaying())
|
||||
|
@ -248,34 +248,32 @@ int CMenu::main(void)
|
||||
|
||||
if (m_cfg.getBool("GENERAL", "async_network", false) || has_enabled_providers())
|
||||
_initAsyncNetwork();
|
||||
|
||||
SetupInput(true);
|
||||
m_music.Play();
|
||||
|
||||
|
||||
GameTDB m_gametdb;
|
||||
m_gametdb.OpenFile(fmt("%s/wiitdb.xml", m_settingsDir.c_str()));
|
||||
m_GameTDBLoaded=false;
|
||||
m_GameTDBLoaded = false;
|
||||
if(m_gametdb.IsLoaded())
|
||||
{
|
||||
m_GameTDBLoaded=true;
|
||||
m_GameTDBLoaded = true;
|
||||
m_gametdb.CloseFile();
|
||||
}
|
||||
if(m_Emulator_boot)
|
||||
m_current_view = COVERFLOW_EMU;
|
||||
|
||||
if (m_cfg.getBool("GENERAL", "update_cache", false))
|
||||
if(m_cfg.getBool("GENERAL", "update_cache", false))
|
||||
{
|
||||
UpdateCache();
|
||||
m_gameList.Update();
|
||||
}
|
||||
LoadView();
|
||||
if (m_cfg.getBool("GENERAL", "startup_menu", false))
|
||||
if(m_cfg.getBool("GENERAL", "startup_menu", false))
|
||||
{
|
||||
_hideMain();
|
||||
if(!_Source())
|
||||
LoadView();
|
||||
else
|
||||
_showMain();
|
||||
_showMain();
|
||||
if(BTN_B_HELD)
|
||||
bUsed = true;
|
||||
}
|
||||
|
@ -11,7 +11,13 @@ MusicPlayer m_music;
|
||||
|
||||
void MusicPlayer::cleanup()
|
||||
{
|
||||
if(m_music_files.empty())
|
||||
return;
|
||||
MusicFile.Pause();
|
||||
MusicFile.Stop();
|
||||
MusicFile.FreeMemory();
|
||||
m_music_files.clear();
|
||||
m_stopped = true;
|
||||
}
|
||||
|
||||
void MusicPlayer::Init(Config &cfg, string musicDir, string themeMusicDir)
|
||||
@ -68,6 +74,8 @@ void MusicPlayer::Previous()
|
||||
{
|
||||
if(m_music_files.empty())
|
||||
return;
|
||||
if(PosFromPrevFile())
|
||||
return;
|
||||
if(m_current_music == m_music_files.begin())
|
||||
m_current_music = m_music_files.end();
|
||||
|
||||
@ -80,15 +88,8 @@ void MusicPlayer::Next()
|
||||
{
|
||||
if(m_music_files.empty())
|
||||
return;
|
||||
if(CurrentPosition)
|
||||
{
|
||||
LoadCurrentFile();
|
||||
MusicFile.Pause();
|
||||
SoundHandler::Instance()->Decoder(MusicFile.GetVoice())->Seek(CurrentPosition);
|
||||
CurrentPosition = 0;
|
||||
MusicFile.Resume();
|
||||
if(PosFromPrevFile())
|
||||
return;
|
||||
}
|
||||
m_current_music++;
|
||||
if (m_current_music == m_music_files.end())
|
||||
m_current_music = m_music_files.begin();
|
||||
@ -98,10 +99,24 @@ void MusicPlayer::Next()
|
||||
|
||||
void MusicPlayer::StopAndSetPos()
|
||||
{
|
||||
if(m_music_files.empty())
|
||||
return;
|
||||
CurrentPosition = SoundHandler::Instance()->Decoder(MusicFile.GetVoice())->Tell();
|
||||
Stop();
|
||||
}
|
||||
|
||||
bool MusicPlayer::PosFromPrevFile()
|
||||
{
|
||||
if(!CurrentPosition)
|
||||
return false;
|
||||
LoadCurrentFile();
|
||||
MusicFile.Pause();
|
||||
SoundHandler::Instance()->Decoder(MusicFile.GetVoice())->Seek(CurrentPosition);
|
||||
CurrentPosition = 0;
|
||||
MusicFile.Resume();
|
||||
return true;
|
||||
}
|
||||
|
||||
void MusicPlayer::Play()
|
||||
{
|
||||
SetVolume(m_music_current_volume);
|
||||
|
@ -21,13 +21,14 @@ public:
|
||||
|
||||
void Previous();
|
||||
void Next();
|
||||
void Play();
|
||||
void Stop();
|
||||
void StopAndSetPos();
|
||||
|
||||
bool IsStopped() { return m_stopped; };
|
||||
|
||||
protected:
|
||||
void Play();
|
||||
void Stop();
|
||||
bool PosFromPrevFile();
|
||||
void LoadCurrentFile();
|
||||
void ScanDirectories(const char *directory);
|
||||
|
||||
|
@ -191,6 +191,9 @@ DMLprogP=PAL 480p
|
||||
errboot1=Kein cIOS gefunden!\ncIOS d2x 249 Basis 56 und 250 Basis 57 genügen für die meisten Spiele.
|
||||
errboot2=Kein Speichermedium zum Speichern der Konfiguration gefunden!
|
||||
errboot3=Konnte DIP Modul nicht initialisieren!
|
||||
errboot4=Keine verwendbare Partition gefunden!
|
||||
errboot5=data_on_usb=yes aber keine verwendbare USB Partition!\nSD wird verwendet.
|
||||
errboot6=Kein Speichermedium zum Speichern der Konfiguration gefunden!\Beende.
|
||||
errgame1=Konnte folgendes Spiel mit dieser ID nicht finden: %s
|
||||
errgame2=Kein cIOS gefunden!
|
||||
errgame4=Konnte IOS %i nicht laden!
|
||||
|
Loading…
Reference in New Issue
Block a user