GameCrashUploader.cpp 820 B

12345678910111213141516171819202122232425262728293031323334
  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 <AzCore/PlatformIncl.h>
  9. #include <CrashReporting/GameCrashUploader.h>
  10. #include <CrashSupport.h>
  11. namespace O3de
  12. {
  13. void InstallCrashUploader(int& argc, char* argv[])
  14. {
  15. O3de::CrashUploader::SetCrashUploader(std::make_shared<O3de::GameCrashUploader>(argc, argv));
  16. }
  17. std::string GameCrashUploader::GetRootFolder()
  18. {
  19. std::string returnPath;
  20. ::CrashHandler::GetExecutableFolder(returnPath);
  21. return returnPath;
  22. }
  23. GameCrashUploader::GameCrashUploader(int& argCount, char** argv) :
  24. CrashUploader(argCount, argv)
  25. {
  26. }
  27. }