1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Add host commands to control game

This commit is contained in:
nordsoft
2022-10-06 15:54:46 +04:00
parent 895ec2d302
commit 16e185343a
2 changed files with 54 additions and 1 deletions

View File

@@ -818,7 +818,11 @@ void YourTurn::applyCl(CClient *cl)
void SaveGameClient::applyCl(CClient *cl)
{
const auto stem = FileInfo::GetPathStem(fname);
CResourceHandler::get("local")->createResource(stem.to_string() + ".vcgm1");
if(!CResourceHandler::get("local")->createResource(stem.to_string() + ".vcgm1"))
{
logNetwork->error("Failed to create resource %s", stem.to_string() + ".vcgm1");
return;
}
try
{