فهرست منبع

fixed for editor macosx

dmuratshin 9 سال پیش
والد
کامیت
9f301c32cc
4فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 2 2
      oxygine/src/closure/closure.h
  2. 0 1
      oxygine/src/closure/closure_impl.h
  3. 1 1
      oxygine/src/core/file.cpp
  4. 1 1
      oxygine/src/core/oxygine.cpp

+ 2 - 2
oxygine/src/closure/closure.h

@@ -18,8 +18,8 @@ Many thanks to Wolfhound
 #  pragma once
 #endif
 
-#ifndef __S3E__
-#define CLOSURE_FUNCTION 1
+#if !defined(__S3E__) || defined(OXYGINE_EDITOR)
+#define CLOSURE_FUNCTION 0
 #endif
 
 #ifdef CLOSURE_FUNCTION

+ 0 - 1
oxygine/src/closure/closure_impl.h

@@ -9,7 +9,6 @@ Many thanks to Wolfhound
 
 */
 
-
 //====================================================================================================
 
 //general template

+ 1 - 1
oxygine/src/core/file.cpp

@@ -52,9 +52,9 @@ namespace oxygine
             log::messageln("internal %s", SDL_AndroidGetInternalStoragePath());
             log::messageln("external %s", SDL_AndroidGetExternalStoragePath());
             _nfsWrite.setPath(SDL_AndroidGetInternalStoragePath());
+#elif OXYGINE_EDITOR
 #elif __APPLE__
             _nfsWrite.setPath(getSupportFolder().c_str());
-#elif OXYGINE_EDITOR
 #else
             if (company && app && *company && *app)
             {

+ 1 - 1
oxygine/src/core/oxygine.cpp

@@ -408,7 +408,7 @@ namespace oxygine
                 _dispatcher = new EventDispatcher;
 
 #ifdef OXYGINE_EDITOR
-            setlocale(LC_ALL, "POSIX");
+            //setlocale(LC_ALL, "POSIX");
 #endif
 
             file::init(desc.companyName, desc.appName);