From 442ec92d32e5c3f5fe6249b5c0e36a122ce7f71c Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 8 Jan 2019 14:58:57 -0600 Subject: [PATCH] minor fix for texture packer command. --- .../Properties/PublishProfiles/FolderProfile.pubxml | 13 +++++++++++++ .../TextureAtlasTools/TexturePackerCommand.cs | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 RecrownedAthenaeum.ConsoleTools/Properties/PublishProfiles/FolderProfile.pubxml diff --git a/RecrownedAthenaeum.ConsoleTools/Properties/PublishProfiles/FolderProfile.pubxml b/RecrownedAthenaeum.ConsoleTools/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..6ad5bfd --- /dev/null +++ b/RecrownedAthenaeum.ConsoleTools/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + FileSystem + Release + Any CPU + netcoreapp2.1 + bin\Release\netcoreapp2.1\publish\ + + \ No newline at end of file diff --git a/RecrownedAthenaeum.ConsoleTools/TextureAtlasTools/TexturePackerCommand.cs b/RecrownedAthenaeum.ConsoleTools/TextureAtlasTools/TexturePackerCommand.cs index bcaf9fc..24ae583 100644 --- a/RecrownedAthenaeum.ConsoleTools/TextureAtlasTools/TexturePackerCommand.cs +++ b/RecrownedAthenaeum.ConsoleTools/TextureAtlasTools/TexturePackerCommand.cs @@ -90,7 +90,7 @@ namespace RecrownedAthenaeum.Tools.TextureAtlasTools { if (arguments[i] == "-9p") { - if (i + 5 >= arguments.Length) throw new ArgumentException("-9p is not followed by proper specifiers for a 9Patch (format: \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.)"); + if (i + 1 >= arguments.Length) throw new ArgumentException("-9p is not followed by proper specifiers for a 9Patch (format: \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.)"); string[] nPatchArgs = arguments[i + 1].Split(','); try {