|
|
@ -144,19 +144,22 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
|
|
// instanciate ConfigFile
|
|
|
|
// instanciate ConfigFile
|
|
|
|
CConfigFile config;
|
|
|
|
CConfigFile config;
|
|
|
|
OperationStep step = config.load() ? config.getInstallNextStep():DisplayNoServerError;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (step == DisplayNoServerError)
|
|
|
|
bool res = config.load();
|
|
|
|
{
|
|
|
|
|
|
|
|
QMessageBox::critical(NULL, QApplication::tr("Error"), QApplication::tr("Unable to find ryzom_installer.ini"));
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// init log
|
|
|
|
// init log
|
|
|
|
CLogHelper logHelper(config.getInstallationDirectory());
|
|
|
|
CLogHelper logHelper(config.getInstallationDirectory());
|
|
|
|
|
|
|
|
|
|
|
|
nlinfo("Launched %s", Q2C(config.getInstallerCurrentFilePath()));
|
|
|
|
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)
|
|
|
|
#if defined(Q_OS_WIN) && !defined(_DEBUG)
|
|
|
|
// under Windows, Ryzom Installer should always be copied in TEMP directory
|
|
|
|
// under Windows, Ryzom Installer should always be copied in TEMP directory
|
|
|
|
QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
|
|
|
QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
|
|
|