Prechádzať zdrojové kódy

Remove exist check for mod prop icon files

Improves performance.
habeebweeb 3 rokov pred
rodič
commit
4869f7c230

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Constants.cs

@@ -957,7 +957,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                     {
                         Texture2D icon;
                         string iconFile = item.IconFile;
-                        if (string.IsNullOrEmpty(iconFile) || !GameUty.FileSystem.IsExistentFile(iconFile))
+                        if (string.IsNullOrEmpty(iconFile))
                         {
                             Utility.LogWarning($"Could not find icon '{iconFile}' for menu '{item.MenuFile}");
                             return true;