mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 19:01:56 +01:00
-only opening game info menu if gametdb is present
This commit is contained in:
parent
739d7892b3
commit
1a306fb2ed
@ -700,7 +700,7 @@ private:
|
|||||||
int _config4(void);
|
int _config4(void);
|
||||||
int _configAdv(void);
|
int _configAdv(void);
|
||||||
int _configSnd(void);
|
int _configSnd(void);
|
||||||
void _game(bool launch = false);
|
void _game(bool launch = false, bool gametdb = false);
|
||||||
void _download(std::string gameId = std::string());
|
void _download(std::string gameId = std::string());
|
||||||
bool _code(char code[4], bool erase = false);
|
bool _code(char code[4], bool erase = false);
|
||||||
void _about(void);
|
void _about(void);
|
||||||
|
@ -284,7 +284,7 @@ static void setLanguage(int l)
|
|||||||
configbytes[0] = 0xCD;
|
configbytes[0] = 0xCD;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenu::_game(bool launch)
|
void CMenu::_game(bool launch, bool gametdb)
|
||||||
{
|
{
|
||||||
m_gcfg1.load(sfmt("%s/gameconfig1.ini", m_settingsDir.c_str()).c_str());
|
m_gcfg1.load(sfmt("%s/gameconfig1.ini", m_settingsDir.c_str()).c_str());
|
||||||
if (!launch)
|
if (!launch)
|
||||||
@ -321,7 +321,7 @@ void CMenu::_game(bool launch)
|
|||||||
m_gameSound.Stop();
|
m_gameSound.Stop();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (BTN_PLUS_PRESSED)
|
else if (BTN_PLUS_PRESSED && gametdb)
|
||||||
{
|
{
|
||||||
_hideGame();
|
_hideGame();
|
||||||
m_gameSelected = true;
|
m_gameSelected = true;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "disc.h"
|
#include "disc.h"
|
||||||
#include "loader/cios.hpp"
|
#include "loader/cios.hpp"
|
||||||
#include "loader/alt_ios.h"
|
#include "loader/alt_ios.h"
|
||||||
|
#include "GameTDB.hpp"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -189,6 +190,12 @@ int CMenu::main(void)
|
|||||||
|
|
||||||
SetupInput();
|
SetupInput();
|
||||||
MusicPlayer::Instance()->Play();
|
MusicPlayer::Instance()->Play();
|
||||||
|
GameTDB m_gametdb;
|
||||||
|
m_gametdb.OpenFile(sfmt("%s/wiitdb.xml", m_settingsDir.c_str()).c_str());
|
||||||
|
bool gametdbloaded=false;
|
||||||
|
if (m_gametdb.IsLoaded())
|
||||||
|
gametdbloaded=true;
|
||||||
|
m_gametdb.CloseFile();
|
||||||
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
||||||
if (m_cfg.getBool("GENERAL", "update_cache", false))
|
if (m_cfg.getBool("GENERAL", "update_cache", false))
|
||||||
{
|
{
|
||||||
@ -578,7 +585,7 @@ int CMenu::main(void)
|
|||||||
if (m_cf.select())
|
if (m_cf.select())
|
||||||
{
|
{
|
||||||
_hideMain();
|
_hideMain();
|
||||||
_game(BTN_B_HELD);
|
_game(BTN_B_HELD, gametdbloaded);
|
||||||
if(m_exit) break;
|
if(m_exit) break;
|
||||||
m_cf.cancel();
|
m_cf.cancel();
|
||||||
_showMain();
|
_showMain();
|
||||||
|
Loading…
Reference in New Issue
Block a user