|
|
@@ -26,11 +26,12 @@ namespace oxygine
|
|
|
{
|
|
|
_ress.push_back(res);
|
|
|
}
|
|
|
-
|
|
|
+#ifndef __S3E__
|
|
|
void ThreadLoader::add(std::function< void() > v)
|
|
|
{
|
|
|
_funcs.push_back(v);
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
bool ThreadLoader::isCompleted()
|
|
|
{
|
|
|
@@ -89,10 +90,12 @@ namespace oxygine
|
|
|
res->load();
|
|
|
}
|
|
|
|
|
|
+#ifndef __S3E__
|
|
|
for (funcs::iterator i = _funcs.begin(); i != _funcs.end(); ++i)
|
|
|
{
|
|
|
(*i)();
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
core::getMainThreadDispatcher().postCallback(0, 0, 0, threadDone, this);
|
|
|
}
|