aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-11 21:28:53 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-11 21:28:53 +0100
commit28dc82c923d369f156008167237583f725e90375 (patch)
tree922e36012bc89e916a491fb34d340015f2bb13db
parent2da479e7a54e367e13e4a1f70987104a22372ebd (diff)
downloadpolecat-28dc82c923d369f156008167237583f725e90375.tar.gz
polecat-28dc82c923d369f156008167237583f725e90375.zip
cleanup imports, add completion message for downloads
-rw-r--r--src/dxvk.c2
-rw-r--r--src/lutris.c1
-rw-r--r--src/wine.c12
3 files changed, 4 insertions, 11 deletions
diff --git a/src/dxvk.c b/src/dxvk.c
index bca742e..1cb3770 100644
--- a/src/dxvk.c
+++ b/src/dxvk.c
@@ -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
diff --git a/src/wine.c b/src/wine.c
index f4a94ea..39b63ed 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -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;
}