Skip to content

Commit ab1cefd

Browse files
committed
Tag SarConvert Output filename with size and/or hd
1 parent 3e74023 commit ab1cefd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SarConvert/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ int wmain(int argc, LPCWSTR* argv)
124124
wcscpy_s(dstName, f);
125125
LPWSTR dot = wcsrchr(dstName, L'.');
126126
*dot = '\0';
127+
128+
if (targetSize) {
129+
WCHAR strbuf[64];
130+
swprintf_s(strbuf, L"_%d", targetSize);
131+
wcscat_s(dstName, strbuf);
132+
}
133+
134+
if(renderHd) {
135+
wcscat_s(dstName, L"_hd");
136+
}
137+
127138
wcscat_s(dstName, L".png");
128139

129140
FILE* outFile;

0 commit comments

Comments
 (0)