| 221 | } |
| 222 | |
| 223 | bool saveGame(const char* filename, const char* saveName) |
| 224 | { |
| 225 | char filePath[TFE_MAX_PATH]; |
| 226 | sprintf(filePath, "%s%s", s_gameSavePath, filename); |
| 227 | |
| 228 | bool ret = false; |
| 229 | FileStream stream; |
| 230 | if (stream.open(filePath, Stream::MODE_WRITE)) |
| 231 | { |
| 232 | saveHeader(&stream, saveName); |
| 233 | ret = s_game->serializeGameState(&stream, filename, true); |
| 234 | stream.close(); |
| 235 | } |
| 236 | return ret; |
| 237 | } |
| 238 | |
| 239 | bool loadGame(const char* filename) |
| 240 | { |
no test coverage detected