Fixed: -o option of tga2dds for directory output

This commit is contained in:
kervala 2016-01-23 13:02:29 +01:00
parent f75253148e
commit 0424f2b925

View file

@ -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
{