소스 검색

marmalade

dmuratshin 9 년 전
부모
커밋
d0105b2e05
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      oxygine/src/ThreadLoader.cpp
  2. 4 0
      oxygine/src/ThreadLoader.h

+ 4 - 1
oxygine/src/ThreadLoader.cpp

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

+ 4 - 0
oxygine/src/ThreadLoader.h

@@ -27,7 +27,9 @@ namespace oxygine
         virtual void add(Resources* res);
         virtual void add(Resource* res);
 
+#ifndef __S3E__
         virtual void add(std::function< void() >);
+#endif
 
         void start();
         //void stop();
@@ -49,7 +51,9 @@ namespace oxygine
         typedef std::list<Resource*> ress;
         ress _ress;
 
+#ifndef __S3E__
         typedef std::list<std::function<void()> > funcs;
         funcs _funcs;
+#endif
     };
 }