On Sun, 21 Nov 2021 14:31:54 +0100
Ichthyostega <p...@ichthyostega.de> wrote:
>Compiling without GUI seems (mosly?) OK.
>
>The problem is when you use a regular build (with gui)
>but start it with --no-gui

Ah. I didn't think of that. This is almost certainly down to main.cpp
Most significantly Fl::lock() and the immediately following code.

gui and cli status are read from *arg right at the start, and I had been
intending to integrate them properly, but so far haven't thought of the best
way to do it. As I think I already mentioned, main needs a real overhaul. There
is far too much going on there.

The reason for gui being -1, 0 or 1 is so that if you simply add it to
bShowGui, then test for > 0 then the incoming argument should be able to
override bShowGui without actually changing it.

In any case, I think bShowGui should be applied just before Fl::lock()
Would you like to give that a try?

Will.

-- 
Will J Godfrey
https://willgodfrey.bandcamp.com/
http://yoshimi.github.io
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.


_______________________________________________
Yoshimi-devel mailing list
Yoshimi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel

Reply via email to