mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refactor: Clarify CApplication method names
This commit is contained in:
@@ -43,12 +43,12 @@ int main(int argc, char *argv[])
|
||||
const QCommandLineOption installerOption { { "i", "installer" }, QCoreApplication::translate("main", "Installer setup.") };
|
||||
a.addParserOption(installerOption);
|
||||
if (!a.parseCommandLineArgsAndLoadSetup()) { return EXIT_FAILURE; }
|
||||
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
|
||||
a.initAndStartWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
|
||||
|
||||
const bool installMode = a.isParserOptionSet(installerOption);
|
||||
if (installMode) initDbCacheFromResourceFileIfRequired(a);
|
||||
|
||||
a.useFacadeNoContexts();
|
||||
a.startCoreFacadeWithoutContexts();
|
||||
if (!a.start())
|
||||
{
|
||||
a.gracefulShutdown();
|
||||
|
||||
Reference in New Issue
Block a user