X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsetup.h;h=6e0636ea2a0d99f035f82722866d904cf3c2cec5;hb=2354413660449688b28a1e9a21df85a24df902ec;hp=006a713ad56055f26b2fb1e64a3852f0097c0478;hpb=c2a639c0b2c1a9a2bd14de86932a47429ae918a4;p=rocksndiamonds.git diff --git a/src/libgame/setup.h b/src/libgame/setup.h index 006a713a..6e0636ea 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -33,13 +33,14 @@ TYPE_YES_NO) /* additional values for setup screen */ -#define TYPE_ENTER_MENU (1 << 8) -#define TYPE_LEAVE_MENU (1 << 9) -#define TYPE_EMPTY (1 << 10) -#define TYPE_KEYTEXT (1 << 11) +#define TYPE_ENTER_SCREEN (1 << 8) +#define TYPE_ENTER_MENU (1 << 9) +#define TYPE_LEAVE_MENU (1 << 10) +#define TYPE_EMPTY (1 << 11) +#define TYPE_KEYTEXT (1 << 12) -#define TYPE_GHOSTED (1 << 12) -#define TYPE_QUERY (1 << 13) +#define TYPE_GHOSTED (1 << 13) +#define TYPE_QUERY (1 << 14) #define TYPE_VALUE (TYPE_BOOLEAN_STYLE | \ TYPE_KEY | \ @@ -52,7 +53,8 @@ TYPE_KEY | \ TYPE_STRING) -#define TYPE_ENTER_OR_LEAVE_MENU (TYPE_ENTER_MENU | \ +#define TYPE_ENTER_OR_LEAVE_MENU (TYPE_ENTER_SCREEN | \ + TYPE_ENTER_MENU | \ TYPE_LEAVE_MENU) /* cookie token for file identifier and version number */ @@ -192,13 +194,14 @@ typedef struct hashtable SetupFileHash; char *setLevelArtworkDir(TreeInfo *); -char *getLevelFilename(int); char *getTapeFilename(int); +char *getSolutionTapeFilename(int); char *getScoreFilename(int); char *getSetupFilename(void); char *getEditorSetupFilename(void); -char *getDemoAnimInfoFilename(void); -char *getDemoAnimTextFilename(void); +char *getHelpAnimFilename(void); +char *getHelpTextFilename(void); +char *getLevelSetInfoFilename(void); char *getImageFilename(char *); char *getCustomImageFilename(char *); char *getCustomSoundFilename(char *); @@ -230,6 +233,8 @@ void sortTreeInfo(TreeInfo **, char *getUserDataDir(void); char *getCommonDataDir(void); char *getSetupDir(void); +char *getCurrentLevelDir(void); + void createDirectory(char *, char *, int); void InitUserDataDirectory(void); void SetFilePermissions(char *, int); @@ -251,6 +256,7 @@ SetupFileHash *newSetupFileHash(); void freeSetupFileHash(SetupFileHash *); char *getHashEntry(SetupFileHash *, char *); void setHashEntry(SetupFileHash *, char *, char *); +char *removeHashEntry(SetupFileHash *, char *); SetupFileHash *loadSetupFileHash(char *); void checkSetupFileHashIdentifier(SetupFileHash *, char *); void setSetupInfo(struct TokenInfo *, int, char *);