From c11dd0eae09df4982459a34d764910d0501f2ae2 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 1 Aug 2020 21:38:07 +0200 Subject: Improve code structure […] - create a dedicated "usage" macro to reuse - add various checks in the case no memory is available - fix cwd fetching check - correctly free json_objects to remove all existing leaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dxvk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dxvk.c') diff --git a/src/dxvk.c b/src/dxvk.c index 817f195..f0ebc86 100644 --- a/src/dxvk.c +++ b/src/dxvk.c @@ -62,7 +62,7 @@ int dxvk_install(int argc, char** argv) } else { - puts("Usage: " NAME " dxvk download \n\nIDs are obtained via `" NAME " dxvk list' "); + puts(USAGE_STR " dxvk download \n\nIDs are obtained via `" NAME " dxvk list' "); } return 0; } @@ -90,7 +90,7 @@ int dxvk_list(int argc, char** argv) int dxvk_help(int argc, char** argv) { - puts("usage: " NAME " dxvk \n\nList of commands:"); + puts(USAGE_STR " dxvk \n\nList of commands:"); print_help(dxvk_commands, ARRAY_LEN(dxvk_commands)); -- cgit v1.2.3