X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsetup.h;h=618e7cb0a2f343a521851c610156ac5f52be2c73;hb=2314567d307a17f1405990a88e98a4a12cad429f;hp=657467f40f5c8909854e2a748bee2466684cb2cf;hpb=28f0f8708f4b4f8c4f39f1b23bc5fc7e0fed7579;p=rocksndiamonds.git diff --git a/src/libgame/setup.h b/src/libgame/setup.h index 657467f4..618e7cb0 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -55,14 +55,6 @@ /* cookie token for file identifier and version number */ #define TOKEN_STR_FILE_IDENTIFIER "file_identifier" -/* structures for setup file handling */ -struct SetupFileList -{ - char *token; - char *value; - struct SetupFileList *next; -}; - struct TokenInfo { int type; @@ -203,6 +195,7 @@ void sortTreeInfo(TreeInfo **, int (*compare_function)(const void *, const void *)); char *getUserDataDir(void); +char *getCommonDataDir(void); char *getSetupDir(void); void createDirectory(char *, char *, int); void InitUserDataDirectory(void); @@ -214,7 +207,9 @@ boolean checkCookieString(const char *, const char *); char *getFormattedSetupEntry(char *, char *); void freeSetupFileList(struct SetupFileList *); +struct SetupFileList *newSetupFileList(char *, char *); char *getTokenValue(struct SetupFileList *, char *); +void setTokenValue(struct SetupFileList *, char *, char *); struct SetupFileList *loadSetupFileList(char *); void checkSetupFileListIdentifier(struct SetupFileList *, char *); void setSetupInfo(struct TokenInfo *, int, char *);