mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-compiler: Do not validate the target type if --print-target-types is specified.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0c6cd3ba21
commit
e075ec5914
@ -474,6 +474,9 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
|
||||
}
|
||||
}
|
||||
|
||||
if (options->print_target_types)
|
||||
return true;
|
||||
|
||||
if (!validate_target_type(options->source_type, options->target_type))
|
||||
{
|
||||
fprintf(stderr, "Target type '%s' is invalid for source type '%s'.\n",
|
||||
@ -482,9 +485,6 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (options->print_target_types)
|
||||
return true;
|
||||
|
||||
if (optind < argc)
|
||||
options->filename = argv[argc - 1];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user