mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
WC24PatchEngine: Make GetNetworkPatch() take a std::string_view
Makes it consistent with GetNetworkPatchByPayload()
This commit is contained in:
parent
fa70a8fd01
commit
88431cfbca
@ -115,7 +115,7 @@ void Reload()
|
|||||||
LoadPatches();
|
LoadPatches();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<std::string> GetNetworkPatch(const std::string& source, IsKD is_kd)
|
std::optional<std::string> GetNetworkPatch(std::string_view source, IsKD is_kd)
|
||||||
{
|
{
|
||||||
const auto patch =
|
const auto patch =
|
||||||
std::find_if(s_patches.begin(), s_patches.end(), [&source, &is_kd](const NetworkPatch& p) {
|
std::find_if(s_patches.begin(), s_patches.end(), [&source, &is_kd](const NetworkPatch& p) {
|
||||||
|
@ -21,6 +21,6 @@ struct NetworkPatch final
|
|||||||
|
|
||||||
void Reload();
|
void Reload();
|
||||||
|
|
||||||
std::optional<std::string> GetNetworkPatch(const std::string& source, IsKD is_kd);
|
std::optional<std::string> GetNetworkPatch(std::string_view source, IsKD is_kd);
|
||||||
std::optional<std::string> GetNetworkPatchByPayload(std::string_view source);
|
std::optional<std::string> GetNetworkPatchByPayload(std::string_view source);
|
||||||
} // namespace WC24PatchEngine
|
} // namespace WC24PatchEngine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user