ProjectExportWorker_windows.cpp 758 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <ProjectExportWorker.h>
  9. #include <ProjectManagerDefs.h>
  10. #include <QDir>
  11. #include <QString>
  12. namespace O3DE::ProjectManager
  13. {
  14. QString ProjectExportWorker::GetO3DECLIString() const
  15. {
  16. return QString("scripts/o3de.bat");
  17. }
  18. AZ::Outcome<QStringList, QString> ProjectExportWorker::ConstructKillProcessCommandArguments(const QString& pidToKill) const
  19. {
  20. return AZ::Success(QStringList { "cmd.exe", "/C", "taskkill", "/pid", pidToKill, "/f", "/t" } );
  21. }
  22. } // namespace O3DE::ProjectManager