aboutsummaryrefslogtreecommitdiff
path: root/src/lutris.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-08-10 12:43:26 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-08-10 12:43:26 +0200
commit1753e2b151cbb4af75a4e9ea61720b3704b03805 (patch)
tree6265e9829a6d6b76ddae13de2138ef8f1c657ccd /src/lutris.h
parentc11dd0eae09df4982459a34d764910d0501f2ae2 (diff)
downloadpolecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.tar.gz
polecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.zip
a lot of changes […]0.1.3
- go to next entry of argv and decrement argc the deeper it goes - add basic lutris functionality - remove "help" from help message and as a command - replace all stderr prints with stdout prints (usually stderr is better for directly informing the user but in this case I don't think it will help much) - add libarchive dependency to the README - bump version number
Diffstat (limited to 'src/lutris.h')
-rw-r--r--src/lutris.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lutris.h b/src/lutris.h
new file mode 100644
index 0000000..6f5fa40
--- /dev/null
+++ b/src/lutris.h
@@ -0,0 +1,61 @@
+#ifndef LUTRIS_H
+#define LUTRIS_H
+
+enum keywords {
+ MOVE = 0,
+ MERGE,
+ EXTRACT,
+ COPY,
+ CHMODX,
+ EXECUTE,
+ WRITE_FILE,
+ WRITE_CONFIG,
+ WRITE_JSON,
+ INPUT_MENU,
+ INSERT_DISC,
+ TASK,
+
+ KEYWORDMAX
+};
+
+static const char keywordstr[KEYWORDMAX][0xF] = {
+ "move",
+ "merge",
+ "extract",
+ "copy",
+ "chmodx",
+ "execute",
+ "write_file",
+ "write_config",
+ "write_json",
+ "input_menu",
+ "insert-disc",
+ "task",
+};
+
+enum taskKeywords {
+ WINEEXEC = 0,
+ WINETRICKS,
+ CREATE_PREFIX,
+ SET_REGEDIT,
+ WINEKILL,
+
+ TASKKEYWORDMAX
+};
+
+static const char taskKeywordstr[TASKKEYWORDMAX][0xF] =
+{
+ "wineexec",
+ "winetricks",
+ "create_prefix",
+ "set_regedit",
+ "winekill"
+};
+
+int lutris(int, char**);
+int lutris_install(int, char**);
+int lutris_info(int, char**);
+int lutris_help(int, char**);
+void lutris_getInstallerURL(char*, char*);
+
+#endif \ No newline at end of file