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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user