aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-07-31 16:24:59 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-07-31 16:24:59 +0200
commitaabfdfe3fcbcf718b30872c98568581d7e7e6cca (patch)
treeb8b1d94814c9d339c6d6bb019f1fff9e4ccb2406 /src/main.c
parent83e4ea0f70ba75f337615ee847f85d4be630686b (diff)
downloadpolecat-aabfdfe3fcbcf718b30872c98568581d7e7e6cca.tar.gz
polecat-aabfdfe3fcbcf718b30872c98568581d7e7e6cca.zip
implement config dirs and unpack tars to them0.1.1
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 2e7655d..f1775e3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,10 +5,11 @@
#include "wine.h"
#include "dxvk.h"
#include "common.h"
+#include "config.h"
const static struct Command main_commands[] = {
{ .name = "wine", .func = wine, .description = "manage wine versions" },
- { .name = "dxvk", .func = dxvk, .description = "manage dxvk versions" },
+ { .name = "dxvk", .func = dxvk, .description = "manage dxvk versions (TODO)" },
{ .name = "info", .func = main_info, .description = "show some information about polecat" },
{ .name = "help", .func = main_help, .description = "displays this message" },
};
@@ -29,10 +30,19 @@ int main(int argc, char** argv)
int main_info(int argc, char** argv)
{
- printf("Version:\t\t%s\n"
- "User-Agent:\t\t%s/%s\n",
+ char cfgdir[256];
+ char datadir[256];
+
+ getConfigDir(cfgdir);
+ getDataDir(datadir);
+
+ printf("version:\t\t%s\n"
+ "user-Agent:\t\t%s/%s\n"
+ "config dir\t\t%s\n"
+ "data dir\t\t%s\n",
VERSION,
- NAME, VERSION);
+ NAME, VERSION,
+ cfgdir, datadir);
return 0;
}