mirror of https://github.com/axmolengine/axmol.git
tests
This commit is contained in:
parent
c96a6086c3
commit
6bbf5a1459
|
@ -5464,6 +5464,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_IPHONE,
|
||||
|
@ -5480,6 +5481,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_IPHONE,
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "CocoLoader.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace cocostudio {
|
||||
const char* kTypeNames[] = { "Null", "False", "True", "Object", "Array", "String", "Number" };
|
||||
|
@ -185,7 +186,8 @@ namespace cocostudio {
|
|||
char* pStringAddr = pStartAddr + m_pFileHeader->m_lStringMemAddr ;
|
||||
|
||||
m_pRootNode = (stExpCocoNode*)pCocoMemAddr;
|
||||
|
||||
std::cout<<"header size = "<<sizeof(m_pFileHeader)<<std::endl;
|
||||
std::cout<<"unsigned long = "<<sizeof(unsigned long)<<std::endl;
|
||||
if(1 == m_pFileHeader->m_nFirstUsed)
|
||||
{
|
||||
for(int i = 0 ; i < m_pFileHeader->m_ObjectCount ; i++)
|
||||
|
|
|
@ -182,7 +182,6 @@ namespace cocostudio
|
|||
for (int i = 0; i < pCocoNode->GetChildNum(); ++i) {
|
||||
std::string key = stChildArray[i].GetName(pCocoLoader);
|
||||
std::string value = stChildArray[i].GetValue();
|
||||
CCLOG("%s", value.c_str());
|
||||
|
||||
if (key == "ignoreSize") {
|
||||
widget->ignoreContentAdaptWithSize(valueToBool(value));
|
||||
|
|
|
@ -73,6 +73,7 @@ namespace cocostudio
|
|||
std::function<bool(std::string)> valueToBool;
|
||||
std::function<float(std::string)> valueToFloat;
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue