OSDN Git Service

Fixes for some post *.4 issues
[automap/automap.git] / Automap / Helpers.cs
index 5dacf09..c217407 100644 (file)
@@ -171,7 +171,12 @@ namespace Automap
                AutomapMod ownMod = ownApi.ModLoader.GetModSystem<AutomapMod>( );
                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);
+               }
     }
 }