Henri Verbeet : vkd3d-compiler: Do not validate the target type if --print-target-types is specified.
Alexandre Julliard
julliard at winehq.org
Wed Oct 7 15:59:56 CDT 2020
Module: vkd3d
Branch: master
Commit: e075ec59143b81f48bbb0fab8446acf73a35d9ba
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=e075ec59143b81f48bbb0fab8446acf73a35d9ba
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Oct 7 18:54:42 2020 +0330
vkd3d-compiler: Do not validate the target type if --print-target-types is specified.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/vkd3d-compiler/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/vkd3d-compiler/main.c b/programs/vkd3d-compiler/main.c
index 8b9d7c2..da09ce3 100644
--- a/programs/vkd3d-compiler/main.c
+++ b/programs/vkd3d-compiler/main.c
@@ -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];
More information about the wine-cvs
mailing list