From: H.G.Muller Date: Sat, 8 Dec 2018 09:27:20 +0000 (+0100) Subject: Move Engine2GUI to a more convenient place X-Git-Tag: v4.0~16 X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=commitdiff_plain;h=a7d1a64029687fd9ae404f0d7490e3bac8c69fb7 Move Engine2GUI to a more convenient place The main loop of the engine thread is moved to a place in the code where future changes would require fewer forward calls to other routines. --- diff --git a/UCI2WB.c b/UCI2WB.c index b9df43c..8de43f5 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -411,13 +411,6 @@ HandleEngineOutput() } } -void * -Engine2GUI() -{ - if(fromF = fopen("DefectiveEngineOptions.ini", "r")) printf("# fake engine input\n"); - HandleEngineOutput(); -} - void Move4Engine(char *m) { @@ -649,6 +642,13 @@ DoCommand () return 0; } +void * +Engine2GUI() +{ + if(fromF = fopen("DefectiveEngineOptions.ini", "r")) printf("# fake engine input\n"); + HandleEngineOutput(); +} + int StartEngine(char *cmdLine, char *dir) {