mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
NULL the game info on view push
This commit is contained in:
parent
913e94fb90
commit
6b53a490f8
@ -29,6 +29,8 @@ public:
|
|||||||
|
|
||||||
void runStartSequence(bool what);
|
void runStartSequence(bool what);
|
||||||
|
|
||||||
|
void viewPushCallback();
|
||||||
|
|
||||||
/* Inherited */
|
/* Inherited */
|
||||||
void runLogic();
|
void runLogic();
|
||||||
|
|
||||||
@ -172,6 +174,11 @@ DiscView::~DiscView()
|
|||||||
delete this->gameInfo;
|
delete this->gameInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DiscView::viewPushCallback()
|
||||||
|
{
|
||||||
|
this->gameInfo->setGameInfo(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
void DiscView::loadGameInfo(const char *what)
|
void DiscView::loadGameInfo(const char *what)
|
||||||
{
|
{
|
||||||
this->gameInfo->loadGameInfo(what, Gui::gui->metadata_base_path);
|
this->gameInfo->loadGameInfo(what, Gui::gui->metadata_base_path);
|
||||||
|
@ -28,6 +28,8 @@ public:
|
|||||||
|
|
||||||
void setLoadSnapshot(bool which);
|
void setLoadSnapshot(bool which);
|
||||||
|
|
||||||
|
void viewPushCallback();
|
||||||
|
|
||||||
void saveSnapshot();
|
void saveSnapshot();
|
||||||
|
|
||||||
/* Inherited */
|
/* Inherited */
|
||||||
@ -137,6 +139,11 @@ void SaveGameView::setLoadSnapshot(bool what)
|
|||||||
this->menu->loadSnapshot = what;
|
this->menu->loadSnapshot = what;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SaveGameView::viewPushCallback()
|
||||||
|
{
|
||||||
|
this->gameInfo->setGameInfo(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
void SaveGameView::saveSnapshot()
|
void SaveGameView::saveSnapshot()
|
||||||
{
|
{
|
||||||
const char *name = "unknown";
|
const char *name = "unknown";
|
||||||
|
Loading…
Reference in New Issue
Block a user