Browse Source

Fixed #Import broken with geninfo hidden files.

Mark Sibly 7 years ago
parent
commit
df09f5d397
2 changed files with 3 additions and 7 deletions
  1. 0 4
      src/mx2cc/mx2cc.monkey2
  2. 3 3
      src/mx2cc/parser.monkey2

+ 0 - 4
src/mx2cc/mx2cc.monkey2

@@ -30,10 +30,6 @@ Const TestArgs:="mx2cc geninfo -semant src/mx2cc/test.monkey2"
 
 Function Main()
 	
-'	Print "YARGH!"
-	
-'	Return
-
 	'Set aside 64M for GC!
 	GCSetTrigger( 64*1024*1024 )
 	

+ 3 - 3
src/mx2cc/parser.monkey2

@@ -22,7 +22,7 @@ Class Parser
 
 	Method ParseFile:FileDecl( ident:String,srcPath:String,ppsyms:StringMap<String> )
 		
-		Local gpath:=""
+		Local srcPath2:=srcPath,gpath:=""
 		
 		If Builder.opts.geninfo
 			
@@ -31,7 +31,7 @@ Class Parser
 			Local path:=dir+name
 			
 			'use tmp file ONLY if newer than real file.
-			If GetFileType( path )=FileType.File And GetFileTime( path )>GetFileTime( srcPath ) srcPath=path
+			If GetFileType( path )=FileType.File And GetFileTime( path )>GetFileTime( srcPath ) srcPath2=path
 				
 			gpath=StripExt( path )+".geninfo"
 		Endif
@@ -47,7 +47,7 @@ Class Parser
 		_fdecl.gpath=gpath
 		_fdecl.nmspace=""
 		
-		Local source:=LoadString( srcPath )
+		Local source:=LoadString( srcPath2 )
 		_toker=New Toker( source )
 		
 		PNode.parsing=_fdecl