Skip to content

Commit

Permalink
Do not append file extension, let the user fully control the output f…
Browse files Browse the repository at this point in the history
…ile name.
  • Loading branch information
ejulien committed Jan 8, 2020
1 parent 5ea545a commit 3b89802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmft/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5172,7 +5172,7 @@ namespace cmft

char fileName[CMFT_PATH_LEN];
strcpy(fileName, _fileName);
cmft::strlcat(fileName, getFilenameExtensionStr(ImageFileType::DDS), CMFT_PATH_LEN);
//cmft::strlcat(fileName, getFilenameExtensionStr(ImageFileType::DDS), CMFT_PATH_LEN);

// Open file.
FILE* fp = fopen(fileName, "wb");
Expand Down Expand Up @@ -5244,7 +5244,7 @@ namespace cmft
{
char fileName[CMFT_PATH_LEN];
strcpy(fileName, _fileName);
cmft::strlcat(fileName, getFilenameExtensionStr(ImageFileType::KTX), CMFT_PATH_LEN);
//cmft::strlcat(fileName, getFilenameExtensionStr(ImageFileType::KTX), CMFT_PATH_LEN);

// Open file.
FILE* fp = fopen(fileName, "wb");
Expand Down Expand Up @@ -5396,7 +5396,7 @@ namespace cmft
cmft::strlcat(mipName, mipHeightStr, CMFT_PATH_LEN);
}

cmft::strlcat(mipName, getFilenameExtensionStr(ImageFileType::HDR), CMFT_PATH_LEN);
//cmft::strlcat(mipName, getFilenameExtensionStr(ImageFileType::HDR), CMFT_PATH_LEN);

// Open file.
FILE* fp = fopen(mipName, "wb");
Expand Down Expand Up @@ -5536,7 +5536,7 @@ namespace cmft
cmft::strlcat(mipName, mipHeightStr, CMFT_PATH_LEN);
}

cmft::strlcat(mipName, getFilenameExtensionStr(ImageFileType::TGA), CMFT_PATH_LEN);
//cmft::strlcat(mipName, getFilenameExtensionStr(ImageFileType::TGA), CMFT_PATH_LEN);

// Open file.
FILE* fp = fopen(mipName, "wb");
Expand Down

0 comments on commit 3b89802

Please sign in to comment.