From 7b3ee49b6aa5bcff2b46987ebc8d9cd46b9e5ac1 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Tue, 20 Oct 2020 23:37:13 +0200 Subject: improve codebase quality - improve unreachable macro to print a message with a minor traceback then exit(0) instead of assert hackery - add specific wine and dxvk directory methods - rename dxvk install to download - remove sanity asserts from lutris, caught by unreachable - improve comments - rename info to env - only use a single buffer for information fetching - fix formatting on code I had help on - purge unused code - if downloadToRam returns null pointer report that the archive went missing not that its invalid - rename undescriptive "datadir" to be more specific - remove unused code from when we stored the archive on disk --- src/config.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 0126646..318b196 100644 --- a/src/config.c +++ b/src/config.c @@ -39,3 +39,14 @@ void getCacheDir(char* config, const size_t size) getXDGDir("XDG_CACHE_HOME", "/.cache/" NAME, config, size); } +void getWineDir(char* config, const size_t size) +{ + getDataDir(config, size); + strncat(config, "/wine", size - strlen(config) - 1); +} + +void getDXVKDir(char* config, const size_t size) +{ + getDataDir(config, size); + strncat(config, "/dxvk", size - strlen(config) - 1); +} \ No newline at end of file -- cgit v1.2.3