fixes for mac
This commit is contained in:
@@ -1482,7 +1482,7 @@ public:
|
||||
init_template("tpl-panel-brushes");
|
||||
//m_layers_container = find<NodeBorder>("layers-container");
|
||||
static auto icons = FindAllBrushes("data/Icons/");
|
||||
if (m_container = find<NodeBorder>("brushes"))
|
||||
if ((m_container = find<NodeBorder>("brushes")))
|
||||
{
|
||||
int count = 0;
|
||||
for (auto& i : icons)
|
||||
@@ -1538,6 +1538,18 @@ public:
|
||||
}
|
||||
AAssetDir_close(dir);
|
||||
#else
|
||||
DIR *dp;
|
||||
struct dirent *ep;
|
||||
dp = opendir(folder.c_str());
|
||||
|
||||
if (dp != NULL)
|
||||
{
|
||||
while (ep = readdir (dp))
|
||||
names.push_back(ep->d_name);
|
||||
closedir(dp);
|
||||
}
|
||||
else
|
||||
LOG("Couldn't open the directory: %s", folder.c_str());
|
||||
#endif
|
||||
return names;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user