Disc Image Manager has a few problems when being run in console mode on some platforms. It has lots of unnessary modules loaded, which are just used for the GUI side.
While Phil has done an excellent job of splitting the project, this creates another problem where if some code is changed on one side, it doesn't get reflected on the other.
So, I am going to try the same thing, but using Lazarus compiler directives instead:
{$DEFINE DIMGUI}
and
{$DEFINE DIMCLI}
For the two project files. Each one will 'use' only the units it requires and these units, instead of having a Pascal variable Fguiopen, compilation will get decided using
{$IFDEF DIMGUI}
...
{$ENDIF}
and
{$IFDEF DIMCLI}
...
{$ENDIF}
The GJHCustomComponents module has been copied into this project so it can be customised this way for DIM.
Of couse, some people may like having both in the same binary.
Disc Image Manager has a few problems when being run in console mode on some platforms. It has lots of unnessary modules loaded, which are just used for the GUI side.
While Phil has done an excellent job of splitting the project, this creates another problem where if some code is changed on one side, it doesn't get reflected on the other.
So, I am going to try the same thing, but using Lazarus compiler directives instead:
{$DEFINE DIMGUI}and
{$DEFINE DIMCLI}For the two project files. Each one will 'use' only the units it requires and these units, instead of having a Pascal variable Fguiopen, compilation will get decided using
and
The GJHCustomComponents module has been copied into this project so it can be customised this way for DIM.
Of couse, some people may like having both in the same binary.