Quellcode durchsuchen

Added internal:: stream protocol to std.

Mark Sibly vor 8 Jahren
Ursprung
Commit
8dd822f50a
1 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen
  1. 10 1
      modules/std/std.monkey2

+ 10 - 1
modules/std/std.monkey2

@@ -116,7 +116,7 @@ Function Main()
 	End
 
 #Endif
-	
+
 #If __DESKTOP_TARGET__ Or __WEB_TARGET__
 
 	'note: ios and android asset proto is implemented using SDL and implemented in mojo...
@@ -142,4 +142,13 @@ Function Main()
 	
 #Endif
 	
+#If __MOBILE_TARGET__
+
+	Stream.OpenFuncs["internal"]=Lambda:Stream( proto:String,path:String,mode:String )
+	
+		Return FileStream.Open( filesystem.InternalDir()+path,mode )
+	End
+
+#Endif
+
 End