| 815 | //--------------------------------------------------------------------------- |
| 816 | |
| 817 | void startSaveGame(int player, uint8_t** stream, bool skip) |
| 818 | { |
| 819 | auto s = ReadString(stream); |
| 820 | savegamefile = s; |
| 821 | delete[] s; |
| 822 | s = ReadString(stream); |
| 823 | savedescription = s; |
| 824 | if (!skip && gi->CanSave()) |
| 825 | { |
| 826 | if (player != consoleplayer) |
| 827 | { |
| 828 | // Paths sent over the network will be valid for the system that sent |
| 829 | // the save command. For other systems, the path needs to be changed. |
| 830 | savegamefile = G_BuildSaveName(ExtractFileBase(savegamefile.GetChars(), true).GetChars()); |
| 831 | } |
| 832 | gameaction = ga_savegame; |
| 833 | } |
| 834 | } |
| 835 | |
| 836 | //--------------------------------------------------------------------------- |
| 837 | // |
nothing calls this directly
no test coverage detected