Subversion Repositories eduke32

Rev

Rev 4766 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4766 Rev 4990
Line 53... Line 53...
53
53
54
    char savename[MAXSAVEGAMENAME];
54
    char savename[MAXSAVEGAMENAME];
55
    uint8_t numplayers, volnum, levnum, skill;
55
    uint8_t numplayers, volnum, levnum, skill;
56
    char boardfn[BMAX_PATH];
56
    char boardfn[BMAX_PATH];
57
    // 282 bytes
57
    // 282 bytes
-
 
58
#ifdef __ANDROID__
-
 
59
    char skillname[32], volname[32];
-
 
60
#endif
58
} savehead_t;
61
} savehead_t;
59
#pragma pack(pop)
62
#pragma pack(pop)
60
63
-
 
64
#ifdef __ANDROID__
-
 
65
#define SAVEHEAD_SIZE 374
-
 
66
#else
-
 
67
#define SAVEHEAD_SIZE 310
-
 
68
#endif
-
 
69
61
EDUKE32_STATIC_ASSERT(sizeof(savehead_t) == 310);
70
EDUKE32_STATIC_ASSERT(sizeof(savehead_t) == SAVEHEAD_SIZE);
62
71
63
int32_t sv_updatestate(int32_t frominit);
72
int32_t sv_updatestate(int32_t frominit);
64
int32_t sv_readdiff(int32_t fil);
73
int32_t sv_readdiff(int32_t fil);
65
uint32_t sv_writediff(FILE *fil);
74
uint32_t sv_writediff(FILE *fil);
66
int32_t sv_loadheader(int32_t fil, int32_t spot, savehead_t *h);
75
int32_t sv_loadheader(int32_t fil, int32_t spot, savehead_t *h);
Line 100... Line 109...
100
#ifdef LUNATIC
109
#ifdef LUNATIC
101
extern const char *(*El_SerializeGamevars)(int32_t *slenptr, int32_t levelnum);
110
extern const char *(*El_SerializeGamevars)(int32_t *slenptr, int32_t levelnum);
102
void El_FreeSaveCode(void);
111
void El_FreeSaveCode(void);
103
#endif
112
#endif
104
113
-
 
114
#ifdef __ANDROID__
-
 
115
char const * G_GetStringFromSavegame(const char *filename, int type);
-
 
116
int32_t G_GetScreenshotFromSavegame(const char *filename, char *pal, char *data);
-
 
117
#endif
-
 
118
105
#ifdef __cplusplus
119
#ifdef __cplusplus
106
}
120
}
107
#endif
121
#endif
108
122
109
#endif
123
#endif