create Xcode project for mac for bundled app

This commit is contained in:
2017-05-18 13:29:18 +01:00
parent 6d14ccd426
commit 4c5b22192b
15 changed files with 1408 additions and 359 deletions

View File

@@ -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)