mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: Init log just after loading config file
This commit is contained in:
parent
0f6a502a1b
commit
8466e37795
1 changed files with 9 additions and 6 deletions
|
@ -144,19 +144,22 @@ int main(int argc, char *argv[])
|
|||
|
||||
// instanciate ConfigFile
|
||||
CConfigFile config;
|
||||
OperationStep step = config.load() ? config.getInstallNextStep():DisplayNoServerError;
|
||||
|
||||
if (step == DisplayNoServerError)
|
||||
{
|
||||
QMessageBox::critical(NULL, QApplication::tr("Error"), QApplication::tr("Unable to find ryzom_installer.ini"));
|
||||
return 1;
|
||||
}
|
||||
bool res = config.load();
|
||||
|
||||
// init log
|
||||
CLogHelper logHelper(config.getInstallationDirectory());
|
||||
|
||||
nlinfo("Launched %s", Q2C(config.getInstallerCurrentFilePath()));
|
||||
|
||||
OperationStep step = res ? config.getInstallNextStep():DisplayNoServerError;
|
||||
|
||||
if (res == DisplayNoServerError)
|
||||
{
|
||||
QMessageBox::critical(NULL, QApplication::tr("Error"), QApplication::tr("Unable to find ryzom_installer.ini"));
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(_DEBUG)
|
||||
// under Windows, Ryzom Installer should always be copied in TEMP directory
|
||||
QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||
|
|
Loading…
Reference in a new issue