implement file browser dialog

This commit is contained in:
2017-11-04 14:50:06 +00:00
parent a3276906f9
commit b49414bcd6
14 changed files with 330 additions and 15 deletions

View File

@@ -8,16 +8,17 @@
bool LayoutManager::load(const char* path)
{
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;
#if _WIN32
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;
#else
if (m_loaded)
return true; // already loaded
#endif // __ANDROID__
m_path = path;