Core/CheatSearch: Implement cheat searching functionality.

This commit is contained in:
Admiral H. Curtiss
2021-08-22 07:12:51 +02:00
parent 94cfbfc49d
commit f3346262d2
6 changed files with 967 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// 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