mirror of https://github.com/axmolengine/axmol.git
modify CCBReader.cpp to CCBReader_v2.cpp in vcproj/vcxproj.
This commit is contained in:
parent
d6dde5a5ee
commit
9ac0b68981
|
@ -34,19 +34,19 @@ USING_NS_CC_EXT;
|
|||
int CCBReader::intValFromDict(CCDictionary* dict, const std::string key)
|
||||
{
|
||||
CCString* valueString = (CCString*) dict->objectForKey(key.c_str());
|
||||
return valueString->intValue();
|
||||
return valueString? valueString->intValue() : 0;
|
||||
}
|
||||
|
||||
float CCBReader::floatValFromDict(CCDictionary* dict, const std::string key)
|
||||
{
|
||||
CCString* valueString = (CCString*) dict->objectForKey(key.c_str());
|
||||
return valueString->floatValue();
|
||||
return valueString? valueString->floatValue() : 0;
|
||||
}
|
||||
|
||||
bool CCBReader::boolValFromDict(CCDictionary* dict, const std::string key)
|
||||
{
|
||||
CCString* valueString = (CCString*) dict->objectForKey(key.c_str());
|
||||
return (bool) valueString->intValue();
|
||||
return valueString? ((bool)(valueString->intValue())) : false;
|
||||
}
|
||||
|
||||
CCPoint CCBReader::pointValFromDict(CCDictionary* dict, const std::string key)
|
||||
|
|
|
@ -1231,6 +1231,26 @@
|
|||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="CCBReader"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\extensions\CCBReader\CCBCustomClass.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\extensions\CCBReader\CCBCustomClass.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\extensions\CCBReader\CCBReader.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\extensions\CCBReader\CCBReader_v2.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="kazmath"
|
||||
|
|
|
@ -161,7 +161,7 @@ xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries\*.*" "$
|
|||
<ClCompile Include="..\effects\CCGrabber.cpp" />
|
||||
<ClCompile Include="..\effects\CCGrid.cpp" />
|
||||
<ClCompile Include="..\extensions\CCBReader\CCBCustomClass.cpp" />
|
||||
<ClCompile Include="..\extensions\CCBReader\CCBReader.cpp" />
|
||||
<ClCompile Include="..\extensions\CCBReader\CCBReader_v2.cpp" />
|
||||
<ClCompile Include="..\extensions\CCControlExtension\CCControl.cpp" />
|
||||
<ClCompile Include="..\extensions\CCControlExtension\CCControlButton.cpp" />
|
||||
<ClCompile Include="..\extensions\CCControlExtension\CCControlColourPicker.cpp" />
|
||||
|
|
|
@ -486,7 +486,7 @@
|
|||
<ClCompile Include="..\extensions\CCBReader\CCBCustomClass.cpp">
|
||||
<Filter>extensions\CCBReader</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\extensions\CCBReader\CCBReader.cpp">
|
||||
<ClCompile Include="..\extensions\CCBReader\CCBReader_v2.cpp">
|
||||
<Filter>extensions\CCBReader</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue