mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-17 04:12:47 +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.
17 lines
635 B
C++
17 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;
|
|
});
|
|
}
|