From a7d1a64029687fd9ae404f0d7490e3bac8c69fb7 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 8 Dec 2018 10:27:20 +0100 Subject: [PATCH] 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. --- UCI2WB.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) 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) { -- 1.7.0.4