Don't save unknown

This commit is contained in:
simon.kagstrom 2010-01-30 14:47:22 +00:00
parent 89cb44386a
commit aaf74e28d8

View File

@ -390,6 +390,10 @@ void Gui::updateGameInfo(GameInfo *gi)
void Gui::saveGameInfo()
{
/* Don't save unset games */
if (strcmp(this->cur_gameInfo->filename, "unknown") == 0)
return;
struct game_info *p = this->cur_gameInfo->dump();
if (p)