Fixed a crash when saving to network - this should be done from the video thread

This commit is contained in:
Sergii Pylypenko
2021-05-16 00:14:33 +03:00
parent 6c08881b4d
commit 2569a3f2ac
5 changed files with 53 additions and 33 deletions

View File

@@ -344,6 +344,8 @@ struct FileToSaveLoad {
AbstractFileType abstract_ftype; ///< Abstract type of file (scenario, heightmap, etc).
std::string name; ///< Name of the file.
char title[255]; ///< Internal name of the game.
bool cloud_save; ///< Save the file to the cloud from the video thread.
bool cloud_load; ///< Load the file from the cloud from the video thread.
void SetMode(FiosType ft);
void SetMode(SaveLoadOperation fop, AbstractFileType aft, DetailedFileType dft);