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

Method parseHWFixName

pcsx2/GameDatabase.cpp:410–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410static std::optional<GameDatabaseSchema::GSHWFixId> GameDatabaseSchema::parseHWFixName(const std::string_view name)
411{
412 for (u32 i = 0; i < std::size(s_gs_hw_fix_names); i++)
413 {
414 if (name.compare(s_gs_hw_fix_names[i]) == 0)
415 return static_cast<GameDatabaseSchema::GSHWFixId>(i);
416 }
417
418 return std::nullopt;
419}
420
421bool GameDatabaseSchema::isUserHackHWFix(GSHWFixId id)
422{

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.50
compareMethod · 0.45

Tested by

no test coverage detected