Backport CCValue APIs

This commit is contained in:
halx99 2020-08-18 11:40:45 +08:00
parent a3a231495c
commit 13137a40ff
1 changed files with 3 additions and 3 deletions

View File

@ -761,7 +761,7 @@ namespace cocostudio
{
ValueMap value = FileUtils::getInstance()->getValueMapFromFile(plist);
ValueMap metadata = value["metadata"].asValueMap();
auto& textureFileName = metadata["textureFileName"].asString();
auto textureFileName = metadata["textureFileName"].asString();
if (!FileUtils::getInstance()->isFileExist(textureFileName))
{
normalErrorFilePath = textureFileName;
@ -819,7 +819,7 @@ namespace cocostudio
{
ValueMap value = FileUtils::getInstance()->getValueMapFromFile(plist);
ValueMap metadata = value["metadata"].asValueMap();
auto& textureFileName = metadata["textureFileName"].asString();
auto textureFileName = metadata["textureFileName"].asString();
if (!FileUtils::getInstance()->isFileExist(textureFileName))
{
pressedErrorFilePath = textureFileName;
@ -877,7 +877,7 @@ namespace cocostudio
{
ValueMap value = FileUtils::getInstance()->getValueMapFromFile(plist);
ValueMap metadata = value["metadata"].asValueMap();
auto& textureFileName = metadata["textureFileName"].asString();
auto textureFileName = metadata["textureFileName"].asString();
if (!FileUtils::getInstance()->isFileExist(textureFileName))
{
disabledErrorFilePath = textureFileName;