mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-07 23:15:59 +00:00
27 lines
567 B
C++
27 lines
567 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <span>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Core/ActionReplay.h"
|
|
|
|
namespace ActionReplay
|
|
{
|
|
|
|
struct GameIDAndRegion
|
|
{
|
|
// FYI: The "game id" here doesn't seem to match what we are familiar with.
|
|
u32 game_id;
|
|
u32 region;
|
|
};
|
|
|
|
std::optional<GameIDAndRegion> DecryptARCode(std::span<const std::string> encrypted_lines,
|
|
std::vector<AREntry>* result);
|
|
|
|
} // namespace ActionReplay
|