mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 03:34:25 +01:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
18 lines
635 B
C++
18 lines
635 B
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <algorithm>
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include "yuzu/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;
|
|
});
|
|
}
|