X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Automap%2FHelpers.cs;h=c21740794eac08895be572d6a4b27597083a3951;hb=8c8cf97e48592b57cde243555596fe3904091568;hp=5dacf09c4643540bff02f02b6936e623bbcd4a20;hpb=c1220183978b395e68d28c9fc3a6c254bc07a3db;p=automap%2Fautomap.git diff --git a/Automap/Helpers.cs b/Automap/Helpers.cs index 5dacf09..c217407 100644 --- a/Automap/Helpers.cs +++ b/Automap/Helpers.cs @@ -171,7 +171,12 @@ namespace Automap AutomapMod ownMod = ownApi.ModLoader.GetModSystem( ); return ownMod.Mod; } - + + + public static bool EndsWith(this AssetLocation asset, string domain, string endPath) + { + return asset.Domain.Equals(domain,StringComparison.InvariantCultureIgnoreCase) && asset.Path.EndsWith(endPath, StringComparison.InvariantCultureIgnoreCase); + } } }