MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetNameParentPart

Method GetNameParentPart

pcsx2/Patch.cpp:556–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556std::string_view Patch::PatchInfo::GetNameParentPart() const
557{
558 const std::string::size_type pos = name.rfind('\\');
559 std::string_view ret;
560 if (pos != std::string::npos)
561 ret = std::string_view(name).substr(0, pos);
562 return ret;
563}
564
565std::vector<Patch::PatchInfo> Patch::GetPatchInfo(const std::string_view serial, u32 crc, bool cheats, bool showAllCRCS, u32* num_unlabelled_patches)
566{

Callers 1

reloadListMethod · 0.80

Calls 2

rfindMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected