Skip to content

Commit

Permalink
keep all existing switches to avoid breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 26, 2024
1 parent 0047cf1 commit 3f2d7fd
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions Texconv/texconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,25 @@ namespace
{ L"xbox", OPT_USE_XBOX },
{ L"xgmode", OPT_XGMODE },
#endif

// Deprecated options (recommend using new -- alternatives)
{ L"badtails", OPT_DDS_BAD_DXTN_TAILS },
{ L"permissive", OPT_DDS_PERMISSIVE },
{ L"ignoremips", OPT_DDS_IGNORE_MIPS },
{ L"tgazeroalpha", OPT_TGAZEROALPHA },
{ L"wiclossless", OPT_WIC_LOSSLESS },
{ L"wicmulti", OPT_WIC_MULTIFRAME },
{ L"timing", OPT_TIMING },
{ L"keepcoverage", OPT_PRESERVE_ALPHA_COVERAGE },
{ L"singleproc", OPT_FORCE_SINGLEPROC },
{ L"tonemap", OPT_TONEMAP },
{ L"x2bias", OPT_X2_BIAS },
{ L"inverty", OPT_INVERT_Y },
{ L"reconstructz", OPT_RECONSTRUCT_Z },
{ L"rotatecolor", OPT_ROTATE_COLOR },
{ L"fixbc4x4", OPT_BCNONMULT4FIX },
{ L"swizzle", OPT_SWIZZLE },

{ nullptr, 0 }
};

Expand Down Expand Up @@ -301,23 +320,6 @@ namespace
{ nullptr, 0 }
};

const SValue<const wchar_t*> g_pOptionsOld[] =
{
{ L"badtails", L"bad-tails" },
{ L"fixbc4x4", L"fix-bc-4x4" },
{ L"ignoremips", L"ignore-mips" },
{ L"inverty", L"invert-y" },
{ L"keepcoverage", L"keep-coverage" },
{ L"reconstructz", L"reconstruct-z" },
{ L"rotatecolor", L"rotate-color" },
{ L"singleproc", L"single-proc" },
{ L"tgazeroalpha", L"tga-zero-alpha" },
{ L"wiclossless", L"wic-lossless" },
{ L"wicmulti", L"wic-multiframe" },
{ L"x2bias", L"x2-bias" },
{ nullptr, nullptr }
};

#define DEFFMT(fmt) { L## #fmt, DXGI_FORMAT_ ## fmt }

const SValue<DXGI_FORMAT> g_pFormats[] =
Expand Down Expand Up @@ -1344,15 +1346,6 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
wprintf(L"ERROR: did you mean `--%ls` (with two dashes)?\n", pArg);
return 1;
}
else
{
auto hint = LookupByName(pArg, g_pOptionsOld);
if (hint)
{
wprintf(L"ERROR: use `--%ls` (with two dashes) instead\n", hint);
return 1;
}
}
}
}

Expand Down

0 comments on commit 3f2d7fd

Please sign in to comment.