create Xcode project for mac for bundled app
This commit is contained in:
@@ -8,16 +8,16 @@
|
||||
|
||||
bool LayoutManager::load(const char* path)
|
||||
{
|
||||
// if (m_loaded)
|
||||
// return true; // already loaded
|
||||
if (m_loaded)
|
||||
return true; // already loaded
|
||||
|
||||
#if !defined(__ANDROID__)
|
||||
struct stat tmp_info;
|
||||
if (stat(path, &tmp_info) != 0)
|
||||
return false;
|
||||
if (tmp_info.st_mtime <= m_file_info.st_mtime)
|
||||
return false;
|
||||
m_file_info = tmp_info;
|
||||
// struct stat tmp_info;
|
||||
// if (stat(path, &tmp_info) != 0)
|
||||
// return false;
|
||||
// if (tmp_info.st_mtime <= m_file_info.st_mtime)
|
||||
// return false;
|
||||
// m_file_info = tmp_info;
|
||||
#endif // __ANDROID__
|
||||
|
||||
m_path = path;
|
||||
@@ -31,7 +31,12 @@ bool LayoutManager::load(const char* path)
|
||||
auto ret = xml.Parse((char*)file.m_data, file.m_len);
|
||||
file.close();
|
||||
if (ret != tinyxml2::XMLError::XML_SUCCESS)
|
||||
{
|
||||
return false;
|
||||
LOG("parsing xml failed");
|
||||
}
|
||||
|
||||
LOG("parsing loaded xml");
|
||||
|
||||
tinyxml2::XMLElement* current = xml.RootElement()->FirstChildElement();
|
||||
while (current)
|
||||
|
||||
Reference in New Issue
Block a user