diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-07-31 17:26:09 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-07-31 17:26:09 +0200 |
commit | 1db300d8815b5f997dd6f992e4ca416537018c2f (patch) | |
tree | 77cf0330be07b8553bc46f53f0e302a9cb81d561 /src/main.c | |
parent | aabfdfe3fcbcf718b30872c98568581d7e7e6cca (diff) | |
download | polecat-1db300d8815b5f997dd6f992e4ca416537018c2f.tar.gz polecat-1db300d8815b5f997dd6f992e4ca416537018c2f.zip |
implement running wine from polecat and more0.1.2
- implement running wine from polecat directly and pass all arguments to wine (default wine prefix is still $HOME/.wine)
- add command to list installed wine versions (lists all directories, needs to be improved)
- rename wine install to wine download
- replace deprecated support_compression_all with support_filter_all
- comment out DXVK command until its further implemented
- use PATH_MAX for strings holding paths
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include <linux/limits.h> #include "main.h" #include "wine.h" @@ -9,7 +10,7 @@ const static struct Command main_commands[] = { { .name = "wine", .func = wine, .description = "manage wine versions" }, - { .name = "dxvk", .func = dxvk, .description = "manage dxvk versions (TODO)" }, + //{ .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" }, }; @@ -30,8 +31,8 @@ int main(int argc, char** argv) int main_info(int argc, char** argv) { - char cfgdir[256]; - char datadir[256]; + char cfgdir[PATH_MAX]; + char datadir[PATH_MAX]; getConfigDir(cfgdir); getDataDir(datadir); @@ -49,7 +50,7 @@ int main_info(int argc, char** argv) int main_help(int argc, char** argv) { - puts("usage: polecat <command>\n\nList of commands:"); + puts("usage: " NAME " <command>\n\nList of commands:"); print_help(main_commands, ARRAY_LEN(main_commands)); |