dolphin/Source/Core/Core/ARDecrypt.h
2026-01-18 01:22:10 -06:00

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