public bool PatchAppletIcon(byte[] DDS, string name) { var patch = PatchTemplate; if (!TextureReplacement.NxNameToList.ContainsKey(patch.NXThemeName)) { return(false); } var target = TextureReplacement.NxNameToList[patch.NXThemeName].Where(x => x.NxThemeName == name).First(); var res = PatchSingleLayout(target.patch); if (!res) { return(res); } PatchBntxTexture(DDS, target.BntxName, target.NewColorFlags); BflytFile curTarget = new BflytFile(sarc.Files[target.FileName]); curTarget.ClearUVData(target.PaneName); sarc.Files[target.FileName] = curTarget.SaveFile(); return(true); }