diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-12-11 21:28:53 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-12-11 21:28:53 +0100 |
commit | 28dc82c923d369f156008167237583f725e90375 (patch) | |
tree | 922e36012bc89e916a491fb34d340015f2bb13db | |
parent | 2da479e7a54e367e13e4a1f70987104a22372ebd (diff) | |
download | polecat-28dc82c923d369f156008167237583f725e90375.tar.gz polecat-28dc82c923d369f156008167237583f725e90375.zip |
cleanup imports, add completion message for downloads
-rw-r--r-- | src/dxvk.c | 2 | ||||
-rw-r--r-- | src/lutris.c | 1 | ||||
-rw-r--r-- | src/wine.c | 12 |
3 files changed, 4 insertions, 11 deletions
@@ -10,7 +10,6 @@ #include "dxvk.h" #include "net.h" #include "tar.h" -#include "common.h" #include "config.h" const static struct Command dxvk_commands[] = { @@ -62,6 +61,7 @@ COMMAND(dxvk, download) { printf("Extracting %s\n", name); extract(archive, dxvkdir); + fprintf(stderr, "Done\n"); } else { diff --git a/src/lutris.c b/src/lutris.c index 75d66e0..5e213ff 100644 --- a/src/lutris.c +++ b/src/lutris.c @@ -7,7 +7,6 @@ #include "lutris.h" #include "net.h" -#include "common.h" const static struct Command lutris_commands[] = { #ifdef DEBUG @@ -5,18 +5,14 @@ #include <json.h> #include <libgen.h> #include <unistd.h> -#include <linux/limits.h> -#include <sys/types.h> -#include <sys/stat.h> #include <sys/utsname.h> #include <dirent.h> #include "wine.h" #include "net.h" #include "tar.h" -#include "common.h" #include "config.h" - +#include "common.h" const static struct Command wine_commands[] = { { .name = "download", .func = wine_download, .description = "download and extract a wine version" }, @@ -67,6 +63,7 @@ COMMAND(wine, download) { fprintf(stderr, "Extracting %s\n", name); extract(archive, winedir); + fprintf(stderr, "Done\n"); } else { @@ -231,11 +228,8 @@ COMMAND(wine, run) } } - else - { - fprintf(stderr, "Specify a what wine version to run.\nUse `" NAME " wine list-installed' to list available versions\n"); - } + fprintf(stderr, "Specify a what wine version to run.\nUse `" NAME " wine list-installed' to list available versions\n"); return 0; } |