@@ -278,6 +278,8 @@ private static void CheckNextCreator()
278278
279279 public static ZXProgram ? BuildDebug ( TextWriter OutputLogWritter )
280280 {
281+ string cmd = "" ;
282+
281283 try
282284 {
283285 if ( ZXProjectManager . Current == null )
@@ -332,7 +334,7 @@ private static void CheckNextCreator()
332334
333335 foreach ( var file in files )
334336 {
335- file . CreateBuildFile ( files ) ;
337+ file . CreateBuildFile ( files , OutputLogWritter ) ;
336338 }
337339
338340 OutputLogWritter . WriteLine ( "Building program map..." ) ;
@@ -346,10 +348,12 @@ private static void CheckNextCreator()
346348 return null ;
347349 }
348350
351+ cmd = $ "\" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -M MEMORY_MAP " + args ;
352+ OutputLogWritter . WriteLine ( "zxbc " + cmd ) ;
349353 var proc = Process . Start (
350354 new ProcessStartInfo (
351- Path . GetFullPath ( ZXOptions . Current . ZxbcPath ) ,
352- $ " \" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -M MEMORY_MAP " + args ) { WorkingDirectory = project . ProjectPath , RedirectStandardError = true , CreateNoWindow = true } ) ;
355+ Path . GetFullPath ( ZXOptions . Current . ZxbcPath ) , cmd )
356+ { WorkingDirectory = project . ProjectPath , RedirectStandardError = true , CreateNoWindow = true } ) ;
353357
354358 OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
355359
@@ -412,8 +416,17 @@ private static void CheckNextCreator()
412416 var varMap = new ZXVariableMap ( varFile , mapFile , bMap ) ;
413417
414418 OutputLogWritter . WriteLine ( "Building disassembly..." ) ;
419+ cmd = $ "\" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -A " + args ;
420+ OutputLogWritter . WriteLine ( cmd ) ;
415421
416- proc = Process . Start ( new ProcessStartInfo ( Path . GetFullPath ( ZXOptions . Current . ZxbcPath ) , $ "\" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -A " + args ) { WorkingDirectory = project . ProjectPath , RedirectStandardError = true , CreateNoWindow = true } ) ;
422+ proc = Process . Start (
423+ new ProcessStartInfo (
424+ Path . GetFullPath ( ZXOptions . Current . ZxbcPath ) , cmd )
425+ {
426+ WorkingDirectory = project . ProjectPath ,
427+ RedirectStandardError = true ,
428+ CreateNoWindow = true
429+ } ) ;
417430
418431 OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
419432
@@ -431,9 +444,17 @@ private static void CheckNextCreator()
431444 string disFile = Path . Combine ( project . ProjectPath , Path . GetFileNameWithoutExtension ( Path . Combine ( codeFile . Directory , codeFile . TempFileName ) ) + ".asm" ) ;
432445 var disasFile = new ZXCodeFile ( disFile , true ) ;
433446
434- disasFile . CreateBuildFile ( files ) ;
447+ disasFile . CreateBuildFile ( files , OutputLogWritter ) ;
435448
436- proc = Process . Start ( new ProcessStartInfo ( Path . GetFullPath ( ZXOptions . Current . ZxbasmPath ) , $ "\" { Path . Combine ( disasFile . Directory , disasFile . TempFileName ) } \" -M MEMORY_MAP") { WorkingDirectory = project . ProjectPath , RedirectStandardError = true , CreateNoWindow = true } ) ;
449+ cmd = $ "\" { Path . Combine ( disasFile . Directory , disasFile . TempFileName ) } \" -M MEMORY_MAP";
450+ proc = Process . Start (
451+ new ProcessStartInfo (
452+ Path . GetFullPath ( ZXOptions . Current . ZxbasmPath ) , cmd )
453+ {
454+ WorkingDirectory = project . ProjectPath ,
455+ RedirectStandardError = true ,
456+ CreateNoWindow = true
457+ } ) ;
437458
438459 OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
439460
0 commit comments