1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Update JsonDetail.cpp

Replaced new JSON by previous version of JSON comitted by IvanSav and added video file test again
This commit is contained in:
Macron1Robot 2014-04-30 13:11:04 +04:00
parent 9976fcc671
commit 345df14d60

View File

@ -950,12 +950,6 @@ namespace
return testAnimation(node.String(), node.meta);
}
std::string videoFile(const JsonNode & node)
{
TEST_FILE(node.meta, "Video/", node.String(), EResType::VIDEO);
return "Video file \"" + node.String() + "\" was not found";
}
std::string imageFile(const JsonNode & node)
{
TEST_FILE(node.meta, "Data/", node.String(), EResType::IMAGE);
@ -965,6 +959,12 @@ namespace
return "Image file \"" + node.String() + "\" was not found";
}
std::string videoFile(const JsonNode & node)
{
TEST_FILE(node.meta, "Video/", node.String(), EResType::VIDEO);
return "Video file \"" + node.String() + "\" was not found";
}
#undef TEST_FILE
}
@ -1046,8 +1046,8 @@ namespace
ret["soundFile"] = Formats::soundFile;
ret["defFile"] = Formats::defFile;
ret["animationFile"] = Formats::animationFile;
ret["videoFile"] = Formats::videoFile;
ret["imageFile"] = Formats::imageFile;
ret["videoFile"] = Formats::videoFile;
return ret;
}