// ----------------------------------------------------------------------------- // Returns the entry associated with the patch matching [name], or null if no // match found // ----------------------------------------------------------------------------- ArchiveEntry* PatchTable::patchEntry(string_view name) { // Search for patch by name for (size_t a = 0; a < patches_.size(); a++) { if (StrUtil::equalCI(patches_[a].name, name)) return patchEntry(a); } // Not found return nullptr; }
/* PatchTable::patchEntry * Returns the entry associated with the patch matching [name], or * NULL if no match found *******************************************************************/ ArchiveEntry* PatchTable::patchEntry(string name) { // Search for patch by name for (size_t a = 0; a < patches.size(); a++) { if (!patches[a].name.CmpNoCase(name)) return patchEntry(a); } // Not found return NULL; }