Skip to content

Commit

Permalink
Adjust #ifdef block
Browse files Browse the repository at this point in the history
  • Loading branch information
pljones committed Oct 22, 2023
1 parent 6b154c5 commit 4c6ab68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,20 +597,19 @@ int main ( int argc, char** argv )
bUseGUI = false;
qWarning() << "No GUI support compiled. Running in headless mode.";
}
#endif

if ( bIsClient )
#endif
#ifdef SERVER_ONLY
if ( bIsClient )
{
qCritical() << "Only --server mode is supported in this build.";
exit ( 1 );
}
#else

// TODO create settings in default state, if loading from file do that next, then come back here to
// override from command line options, then create client or server, letting them do the validation

#else
if ( bIsClient )
{

if ( ServerOnlyOptions.size() != 0 )
{
qCritical() << qUtf8Printable ( QString ( "%1: Server only option(s) '%2' used. Did you omit '--server'?" )
Expand Down

0 comments on commit 4c6ab68

Please sign in to comment.