|
@@ -8,6 +8,8 @@ Using libc
|
|
|
|
|
|
#If __TARGET__="android"
|
|
#If __TARGET__="android"
|
|
#Import "native/Monkey2FileSystem.java"
|
|
#Import "native/Monkey2FileSystem.java"
|
|
|
|
+#Elseif __TARGET__="ios"
|
|
|
|
+#Import "native/filesystem.mm"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
Extern
|
|
Extern
|
|
@@ -46,6 +48,14 @@ Returns true if successful.
|
|
#end
|
|
#end
|
|
Function CopyFile:Bool( srcPath:String,dstPath:String )="bbFileSystem::copyFile"
|
|
Function CopyFile:Bool( srcPath:String,dstPath:String )="bbFileSystem::copyFile"
|
|
|
|
|
|
|
|
+#If __TARGET__="ios"
|
|
|
|
+
|
|
|
|
+Extern Private
|
|
|
|
+
|
|
|
|
+Function getInternalDir:String()="bbFileSystem::getInternalDir"
|
|
|
|
+
|
|
|
|
+#EndIf
|
|
|
|
+
|
|
Private
|
|
Private
|
|
|
|
|
|
Function FixPath:String( path:String )
|
|
Function FixPath:String( path:String )
|
|
@@ -202,7 +212,15 @@ Function InternalDir:String()
|
|
Local dir:=env.CallStaticStringMethod( cls,mth,Null )
|
|
Local dir:=env.CallStaticStringMethod( cls,mth,Null )
|
|
|
|
|
|
Return dir
|
|
Return dir
|
|
|
|
+
|
|
|
|
+#Elseif __TARGET__="ios"
|
|
|
|
+
|
|
|
|
+ local dir:=getInternalDir()
|
|
|
|
+
|
|
|
|
+ Return dir
|
|
|
|
+
|
|
#Endif
|
|
#Endif
|
|
|
|
+
|
|
Return ""
|
|
Return ""
|
|
End
|
|
End
|
|
|
|
|