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 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);

View File

@ -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";