forked from mirror/OpenTTD
(svn r1814) Let ReadFileToMem() return void* (instead of byte*) because we don't know what the caller wants to do with the data
This commit is contained in:
@@ -257,7 +257,7 @@ void GameSizeChanged(void);
|
|||||||
bool FileExists(const char *filename);
|
bool FileExists(const char *filename);
|
||||||
bool ReadLanguagePack(int index);
|
bool ReadLanguagePack(int index);
|
||||||
void InitializeLanguagePacks(void);
|
void InitializeLanguagePacks(void);
|
||||||
byte *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
|
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
|
||||||
int GetLanguageList(char **languages, int max);
|
int GetLanguageList(char **languages, int max);
|
||||||
|
|
||||||
void CheckSwitchToEuro(void);
|
void CheckSwitchToEuro(void);
|
||||||
|
2
ttd.c
2
ttd.c
@@ -218,7 +218,7 @@ static char *strecpy(char *dst, const char *src)
|
|||||||
return dst - 1;
|
return dst - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize)
|
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize)
|
||||||
{
|
{
|
||||||
FILE *in;
|
FILE *in;
|
||||||
byte *mem;
|
byte *mem;
|
||||||
|
Reference in New Issue
Block a user