mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-12 05:45:27 +00:00
19 lines
654 B
C++
19 lines
654 B
C++
|
// Copyright 2018 yuzu Emulator Project
|
||
|
// Licensed under GPLv2 or any later version
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#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;
|
||
|
});
|
||
|
}
|