aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Saraev <stefan@saraev.ca>2016-02-07 18:56:28 +0200
committerStefan Saraev <stefan@saraev.ca>2016-02-13 15:38:52 +0200
commit5c46079095c97b92185b26278ff640f33e7bf57c (patch)
tree5ba62188988f8a734ba789430ea1e6509107baeb /tools
parent65b5e57172cc66e143bb577e9fcb4041cbcc7c1c (diff)
[texturepacker] make disabling dxt/lzo actualy work.
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/TexturePacker/src/TexturePacker.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/depends/native/TexturePacker/src/TexturePacker.cpp b/tools/depends/native/TexturePacker/src/TexturePacker.cpp
index de3d280b89..1179eea9a5 100644
--- a/tools/depends/native/TexturePacker/src/TexturePacker.cpp
+++ b/tools/depends/native/TexturePacker/src/TexturePacker.cpp
@@ -287,9 +287,8 @@ void Usage()
puts(" -input <dir> Input directory. Default: current dir");
puts(" -output <dir> Output directory/filename. Default: Textures.xpr");
puts(" -dupecheck Enable duplicate file detection. Reduces output file size. Default: off");
- puts(" -use_lzo Use lz0 packing. Default: on");
- puts(" -use_dxt Use DXT compression. Default: on");
- puts(" -use_none Use No compression. Default: off");
+ puts(" -disable_lzo Disable lz0 packing");
+ puts(" -disable_dxt Disable DXT compression");
}
static bool checkDupe(struct MD5Context* ctx,
@@ -466,18 +465,14 @@ int main(int argc, char* argv[])
while ((c = (char *)strchr(OutputFilename.c_str(), '\\')) != NULL) *c = '/';
#endif
}
- else if (!platform_stricmp(args[i], "-use_none"))
+ else if (!platform_stricmp(args[i], "-disable_dxt"))
{
flags &= ~FLAGS_USE_DXT;
}
- else if (!platform_stricmp(args[i], "-use_dxt"))
- {
- flags |= FLAGS_USE_DXT;
- }
#ifdef USE_LZO_PACKING
- else if (!platform_stricmp(args[i], "-use_lzo"))
+ else if (!platform_stricmp(args[i], "-disable_lzo"))
{
- flags |= FLAGS_USE_LZO;
+ flags &= ~FLAGS_USE_LZO;
}
#endif
else