|
|
@ -75,8 +75,7 @@ void HandleSIGTERM(int) |
|
|
|
//
|
|
|
|
//
|
|
|
|
// Start
|
|
|
|
// Start
|
|
|
|
//
|
|
|
|
//
|
|
|
|
#if 0 |
|
|
|
#if !defined(QT_GUI) && !defined(GUI) |
|
|
|
#ifndef GUI |
|
|
|
|
|
|
|
int main(int argc, char* argv[]) |
|
|
|
int main(int argc, char* argv[]) |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool fRet = false; |
|
|
|
bool fRet = false; |
|
|
@ -88,7 +87,6 @@ int main(int argc, char* argv[]) |
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool AppInit(int argc, char* argv[]) |
|
|
|
bool AppInit(int argc, char* argv[]) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -228,10 +226,8 @@ bool AppInit2(int argc, char* argv[]) |
|
|
|
fServer = GetBoolArg("-server"); |
|
|
|
fServer = GetBoolArg("-server"); |
|
|
|
|
|
|
|
|
|
|
|
/* force fServer when running without GUI */ |
|
|
|
/* force fServer when running without GUI */ |
|
|
|
#if 0 |
|
|
|
#if !defined(QT_GUI) && !defined(GUI) |
|
|
|
#ifndef GUI |
|
|
|
|
|
|
|
fServer = true; |
|
|
|
fServer = true; |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
fPrintToConsole = GetBoolArg("-printtoconsole"); |
|
|
|
fPrintToConsole = GetBoolArg("-printtoconsole"); |
|
|
|
fPrintToDebugger = GetBoolArg("-printtodebugger"); |
|
|
|
fPrintToDebugger = GetBoolArg("-printtodebugger"); |
|
|
@ -529,11 +525,9 @@ bool AppInit2(int argc, char* argv[]) |
|
|
|
SetStartOnSystemStartup(true); |
|
|
|
SetStartOnSystemStartup(true); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
#if !defined(QT_GUI) && !defined(GUI) |
|
|
|
#ifndef GUI |
|
|
|
|
|
|
|
while (1) |
|
|
|
while (1) |
|
|
|
Sleep(5000); |
|
|
|
Sleep(5000); |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|