Ejemplo n.º 1
0
// -----------------------------------------------------------------------------
// 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;
}
Ejemplo n.º 2
0
/* 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;
}