implement file browser dialog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user