diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-05-18 17:24:35 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-05-18 17:24:35 +0200 |
commit | af5181bf2cf567453fa02e36b78e7956eda20085 (patch) | |
tree | f9448fd1a4ad4e631c38660bdea36ca00eec4d48 /src/wine.c | |
parent | 8e7d62f14bd401e4cc8737c06f16e6978b0b9e57 (diff) | |
download | polecat-af5181bf2cf567453fa02e36b78e7956eda20085.tar.gz polecat-af5181bf2cf567453fa02e36b78e7956eda20085.zip |
cleanup windows config stuff, parse wine argv0
Diffstat (limited to 'src/wine.c')
-rw-r--r-- | src/wine.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -70,7 +70,7 @@ COMMAND(wine, download) getWineDir(winedir, sizeof(winedir)); makeDir(winedir); - + fprintf(stderr, "Downloading %s...\n", name); archive = downloadToRam(json_object_get_string(temp), 1); @@ -248,7 +248,7 @@ COMMAND(wine, run) } fprintf(stderr, "Specify a what wine version to run.\nUse '" NAME " wine list-installed' to list available versions\n"); - + return 0; } @@ -282,7 +282,7 @@ COMMAND(wine, installed) printf("%s\n", ent->d_name); } closedir(dir); - } + } return 0; } @@ -362,10 +362,9 @@ COMMAND(wine, env) } else { - printf("set PATH %s $PATH\n", winepath); + printf("set PATH %s $PATH\n", winepath); } } - //printf("PATH=\"%s\"\n# Run this code in your Terminal\n# by running eval '%s'", newpath, argv[0]); } else { @@ -378,7 +377,6 @@ COMMAND(wine, env) fprintf(stderr, "Specify a what wine version to run.\nUse '" NAME " wine list-installed' to list available versions\n"); } - return 0; } |