Mark Sibly 8 years ago
parent
commit
860fc718b1

+ 3 - 3
modules/std/filesystem/filesystem.monkey2

@@ -189,7 +189,7 @@ Function AssetsDir:String()
 #Else If __DESKTOP_TARGET__ Or __WEB_TARGET__
 	Return AppDir()+"assets/"
 #Else
-	Return ""
+	Return "asset::"
 #Endif
 End
 
@@ -206,7 +206,7 @@ Function DesktopDir:String()
 #Else If __DESKTOP_TARGET__
  	Return GetEnv( "HOME" )+"/Desktop/"
  #Else
- 	Return ""
+ 	Return "desktop::"
 #Endif
 End
 
@@ -223,7 +223,7 @@ Function HomeDir:String()
 #Else if __DESKTOP_TARGET__
 	Return GetEnv( "HOME" )+"/"
 #Else
-	Return ""
+	Return "home::"
 #Endif
 End
 

+ 1 - 1
modules/std/filesystem/native/Monkey2FileSystem.java

@@ -10,7 +10,7 @@ public class Monkey2FileSystem{
     
 		//Log.v( TAG,"getSpecialDir, name="+name );
 		
-		java.io.File f;
+		java.io.File f=null;
 		
 		if( name.equals( "internal" ) ){
 	    	f=Monkey2Activity.instance().getFilesDir();