Ver Fonte

custom function to initialize FS

dmuratshin há 9 anos atrás
pai
commit
f2e77797f0
1 ficheiros alterados com 8 adições e 2 exclusões
  1. 8 2
      oxygine/src/core/file.cpp

+ 8 - 2
oxygine/src/core/file.cpp

@@ -39,8 +39,14 @@ namespace oxygine
         STDFileSystem _nfs(true);
         STDFileSystem _nfsWrite(false);
 
-        void init(const char* company, const char* app)
-        {
+		bool _fsInitialized = false;
+
+		void init(const char* company, const char* app)
+		{
+			if (_fsInitialized)
+				return;
+			_fsInitialized = true;
+
 #ifdef __S3E__
             _nfs.setPath("rom://");
             _nfsWrite.setPath("ram://");