From 0424f2b925ea63238914a3500fa1f4f581a6e445 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 23 Jan 2016 13:02:29 +0100 Subject: [PATCH] Fixed: -o option of tga2dds for directory output --- code/nel/tools/3d/tga_2_dds/tga2dds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/tools/3d/tga_2_dds/tga2dds.cpp b/code/nel/tools/3d/tga_2_dds/tga2dds.cpp index f962f99b8..7f3275694 100644 --- a/code/nel/tools/3d/tga_2_dds/tga2dds.cpp +++ b/code/nel/tools/3d/tga_2_dds/tga2dds.cpp @@ -390,7 +390,7 @@ int main(int argc, char **argv) // if OptOutputFileName is a directory, append the original filename if (CFile::isDirectory(OptOutputFileName)) { - outputFileName = CPath::standardizePath(outputFileName) + getOutputFileName(inputFileName); + outputFileName = CPath::standardizePath(OptOutputFileName) + CFile::getFilename(getOutputFileName(inputFileName)); } else {