@@ -278,6 +278,8 @@ private static void CheckNextCreator()
278
278
279
279
public static ZXProgram ? BuildDebug ( TextWriter OutputLogWritter )
280
280
{
281
+ string cmd = "" ;
282
+
281
283
try
282
284
{
283
285
if ( ZXProjectManager . Current == null )
@@ -332,7 +334,7 @@ private static void CheckNextCreator()
332
334
333
335
foreach ( var file in files )
334
336
{
335
- file . CreateBuildFile ( files ) ;
337
+ file . CreateBuildFile ( files , OutputLogWritter ) ;
336
338
}
337
339
338
340
OutputLogWritter . WriteLine ( "Building program map..." ) ;
@@ -346,10 +348,12 @@ private static void CheckNextCreator()
346
348
return null ;
347
349
}
348
350
351
+ cmd = $ "\" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -M MEMORY_MAP " + args ;
352
+ OutputLogWritter . WriteLine ( "zxbc " + cmd ) ;
349
353
var proc = Process . Start (
350
354
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 } ) ;
353
357
354
358
OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
355
359
@@ -412,8 +416,17 @@ private static void CheckNextCreator()
412
416
var varMap = new ZXVariableMap ( varFile , mapFile , bMap ) ;
413
417
414
418
OutputLogWritter . WriteLine ( "Building disassembly..." ) ;
419
+ cmd = $ "\" { Path . Combine ( codeFile . Directory , codeFile . TempFileName ) } \" -A " + args ;
420
+ OutputLogWritter . WriteLine ( cmd ) ;
415
421
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
+ } ) ;
417
430
418
431
OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
419
432
@@ -431,9 +444,17 @@ private static void CheckNextCreator()
431
444
string disFile = Path . Combine ( project . ProjectPath , Path . GetFileNameWithoutExtension ( Path . Combine ( codeFile . Directory , codeFile . TempFileName ) ) + ".asm" ) ;
432
445
var disasFile = new ZXCodeFile ( disFile , true ) ;
433
446
434
- disasFile . CreateBuildFile ( files ) ;
447
+ disasFile . CreateBuildFile ( files , OutputLogWritter ) ;
435
448
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
+ } ) ;
437
458
438
459
OutputProcessLog ( OutputLogWritter , proc , out logOutput ) ;
439
460
0 commit comments