Files
o3de/Gems/CrashReporting/Code/Include/CrashReporting/GameCrashHandler.h
T
Esteban Papp 860b28c10b more fixes
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-09-08 08:48:32 -07:00

36 lines
1.2 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// LY Editor Crashpad Hook
#pragma once
#include <CrashHandler.h>
namespace CrashHandler
{
class GameCrashHandler : public CrashHandler::CrashHandlerBase
{
public:
GameCrashHandler() = default;
virtual ~GameCrashHandler() = default;
static void InitCrashHandler(const std::string& moduleTag, const std::string& devRoot, const std::string& crashUrl = {}, const std::string& crashToken = {}, const std::string& handlerFolder = {}, const CrashHandlerAnnotations& baseAnnotations = CrashHandlerAnnotations(), const CrashHandlerArguments& argumentVec = CrashHandlerArguments());
protected:
const char* GetCrashHandlerExecutableName() const override;
std::string DetermineAppPath() const override;
std::string GetCrashSubmissionURL() const override;
std::string GetCrashSubmissionToken() const override;
std::string GetCrashHandlerPath(const std::string& lyAppRoot) const override;
};
}