Skip to content

Commit

Permalink
Improve explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Sep 24, 2021
1 parent 53e516e commit d779a15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static class CustomToolbarButtons
/// A 32x32 icon used for the button.
/// You can find a template here
/// https://github.com/IllusionMods/IllusionModdingAPI/blob/master/doc/studio%20icon%20template.png
/// For best performance and smallest size save your thumbnail as 8bit grayscale png (or indexed if you need colors) with no alpha channel.
/// </param>
/// <param name="initialValue">Initial state of the toggle.</param>
/// <param name="onValueChanged">
Expand Down
2 changes: 1 addition & 1 deletion src/Shared.Core/Utilities/ResourceUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static byte[] GetEmbeddedResource(string resourceFileName, Assembly conta
if (origAssembly != containingAssembly)
{
resourceNames = containingAssembly.GetManifestResourceNames().Where(str => str.EndsWith(resourceFileName)).Take(2).ToList();
if (resourceNames.Count == 0) throw new IOException($"Could not find resource with name {resourceNames} inside assembly {containingAssembly} or {origAssembly} - make sure the name and assembly are correct. Two assemblies were checked likely because your method has been harmony patched");
if (resourceNames.Count == 0) throw new IOException($"Could not find resource with name {resourceFileName} inside assembly {containingAssembly} or {origAssembly} - make sure the name and assembly are correct. Two assemblies were checked likely because your method has been harmony patched");
}
}

Expand Down

0 comments on commit d779a15

Please sign in to comment.