NULL the game info on view push

This commit is contained in:
simon.kagstrom 2010-02-24 20:25:34 +00:00
parent 913e94fb90
commit 6b53a490f8
2 changed files with 14 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public:
void runStartSequence(bool what);
void viewPushCallback();
/* Inherited */
void runLogic();
@ -172,6 +174,11 @@ DiscView::~DiscView()
delete this->gameInfo;
}
void DiscView::viewPushCallback()
{
this->gameInfo->setGameInfo(NULL);
}
void DiscView::loadGameInfo(const char *what)
{
this->gameInfo->loadGameInfo(what, Gui::gui->metadata_base_path);

View File

@ -28,6 +28,8 @@ public:
void setLoadSnapshot(bool which);
void viewPushCallback();
void saveSnapshot();
/* Inherited */
@ -137,6 +139,11 @@ void SaveGameView::setLoadSnapshot(bool what)
this->menu->loadSnapshot = what;
}
void SaveGameView::viewPushCallback()
{
this->gameInfo->setGameInfo(NULL);
}
void SaveGameView::saveSnapshot()
{
const char *name = "unknown";