mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 18:41:02 +00:00
24 lines
503 B
C++
24 lines
503 B
C++
// Copyright 2021 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "Common/Result.h"
|
|
|
|
#include "Core/ActionReplay.h"
|
|
|
|
namespace Cheats
|
|
{
|
|
class CheatSearchSessionBase;
|
|
|
|
enum class GenerateActionReplayCodeErrorCode
|
|
{
|
|
IndexOutOfRange,
|
|
NotVirtualMemory,
|
|
InvalidAddress,
|
|
};
|
|
|
|
Common::Result<GenerateActionReplayCodeErrorCode, ActionReplay::ARCode>
|
|
GenerateActionReplayCode(const Cheats::CheatSearchSessionBase& session, size_t index);
|
|
} // namespace Cheats
|