- Replaced all references to the old project name with Citron. - Added Citron copyright information alongside existing notices in all files.
17 lines
668 B
C++
17 lines
668 B
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project & 2025 citron Homebrew Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <algorithm>
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include "citron/compatibility_list.h"
|
|
|
|
CompatibilityList::const_iterator FindMatchingCompatibilityEntry(
|
|
const CompatibilityList& compatibility_list, u64 program_id) {
|
|
return std::find_if(compatibility_list.begin(), compatibility_list.end(),
|
|
[program_id](const auto& element) {
|
|
std::string pid = fmt::format("{:016X}", program_id);
|
|
return element.first == pid;
|
|
});
|
|
}
|