mirror of https://github.com/OpenTTD/OpenTTD
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
parent
8a40ca49c6
commit
11cdcf875c
|
@ -105,8 +105,6 @@ StringID FiosGetDescText(const char **path, uint32 *total_free);
|
||||||
bool FiosDelete(const char *name);
|
bool FiosDelete(const char *name);
|
||||||
/* Make a filename from a name */
|
/* Make a filename from a name */
|
||||||
void FiosMakeSavegameName(char *buf, const char *name, size_t size);
|
void FiosMakeSavegameName(char *buf, const char *name, size_t size);
|
||||||
/* Allocate a new FiosItem */
|
|
||||||
FiosItem *FiosAlloc();
|
|
||||||
|
|
||||||
int CDECL compare_FiosItems(const void *a, const void *b);
|
int CDECL compare_FiosItems(const void *a, const void *b);
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ void FiosGetDrives()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (disk == disk2) {
|
if (disk == disk2) {
|
||||||
FiosItem *fios = FiosAlloc();
|
FiosItem *fios = _fios_items.Append()();
|
||||||
fios->type = FIOS_TYPE_DRIVE;
|
fios->type = FIOS_TYPE_DRIVE;
|
||||||
fios->mtime = 0;
|
fios->mtime = 0;
|
||||||
#ifndef __INNOTEK_LIBC__
|
#ifndef __INNOTEK_LIBC__
|
||||||
|
|
|
@ -780,7 +780,7 @@ void FiosGetDrives()
|
||||||
{
|
{
|
||||||
#if defined(WINCE)
|
#if defined(WINCE)
|
||||||
/* WinCE only knows one drive: / */
|
/* WinCE only knows one drive: / */
|
||||||
FiosItem *fios = FiosAlloc();
|
FiosItem *fios = _fios_items.Append()();
|
||||||
fios->type = FIOS_TYPE_DRIVE;
|
fios->type = FIOS_TYPE_DRIVE;
|
||||||
fios->mtime = 0;
|
fios->mtime = 0;
|
||||||
snprintf(fios->name, lengthof(fios->name), PATHSEP "");
|
snprintf(fios->name, lengthof(fios->name), PATHSEP "");
|
||||||
|
@ -791,7 +791,7 @@ void FiosGetDrives()
|
||||||
|
|
||||||
GetLogicalDriveStrings(sizeof(drives), drives);
|
GetLogicalDriveStrings(sizeof(drives), drives);
|
||||||
for (s = drives; *s != '\0';) {
|
for (s = drives; *s != '\0';) {
|
||||||
FiosItem *fios = FiosAlloc();
|
FiosItem *fios = _fios_items.Append()();
|
||||||
fios->type = FIOS_TYPE_DRIVE;
|
fios->type = FIOS_TYPE_DRIVE;
|
||||||
fios->mtime = 0;
|
fios->mtime = 0;
|
||||||
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
|
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
|
||||||
|
|
Loading…
Reference in New Issue