Set up the main logic for loading saved games

This commit is contained in:
2014-04-20 02:23:51 -04:00
parent a352ee7491
commit 0c0450f4fe
2 changed files with 76 additions and 69 deletions

View File

@@ -92,7 +92,7 @@ std::istream& tarball::getFile(std::string fname) {
}
// If the file doesn't exist, return an empty stream
static std::istringstream empty;
empty.clear();
empty.clear(std::ios_base::badbit);
empty.seekg(0);
return empty;
}