aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-08-18 23:58:16 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-08-18 23:58:16 +0200
commitd53109eaa890ab807b66961a89291cea3cd3c003 (patch)
treea62382b32014266f5aecb6f639d0962bb1682bf0 /src/common.h
parent1753e2b151cbb4af75a4e9ea61720b3704b03805 (diff)
downloadpolecat-d53109eaa890ab807b66961a89291cea3cd3c003.tar.gz
polecat-d53109eaa890ab807b66961a89291cea3cd3c003.zip
first part of a proper lutris implementation and cleanup0.1.4
- remove all old build platform related variables - change behavior of clean - change tabs into spaces - make XDG fetching method static - replace strcpy and cat with strn alternative with proper bounds checking - add cache dir - reenable dxvk and download from ram - completely rework lutris fetching and convert it into an interal struct - only show http errors in debug - add sanity checks to methods with possible NULL return - change extracting methods to extract tar from ram
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common.h b/src/common.h
index 3b071cc..fba45cd 100644
--- a/src/common.h
+++ b/src/common.h
@@ -15,14 +15,14 @@
#define USAGE_STR "Usage: " NAME
struct MemoryStruct {
- uint8_t* memory;
- size_t size;
+ uint8_t* memory;
+ size_t size;
};
struct Command {
- char* name;
- int (*func)(int, char**);
- char* description;
+ char* name;
+ int (*func)(int, char**);
+ char* description;
};
void print_help(const struct Command*, size_t);