| 787 | extern FString savegamefile; |
| 788 | |
| 789 | void G_SaveGame(const char* filename, const char* description) |
| 790 | { |
| 791 | if (sendsave || gameaction == ga_savegame) |
| 792 | { |
| 793 | Printf("%s\n", GStrings.GetString("TXT_SAVEPENDING")); |
| 794 | } |
| 795 | else if (gamestate != GS_LEVEL) |
| 796 | { |
| 797 | Printf("%s\n", GStrings.GetString("TXT_NOTINLEVEL")); |
| 798 | } |
| 799 | else if (!gi->CanSave()) |
| 800 | { |
| 801 | Printf("%s\n", GStrings.GetString("TXT_SPPLAYERDEAD")); |
| 802 | } |
| 803 | else |
| 804 | { |
| 805 | savegamefile = filename; |
| 806 | savedescription = description; |
| 807 | sendsave = true; |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | //--------------------------------------------------------------------------- |
| 812 | // |
no test coverage detected