(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()

This commit is contained in:
skidd13 2008-06-02 14:27:58 +00:00
parent 8a40ca49c6
commit 11cdcf875c
3 changed files with 3 additions and 5 deletions

View File

@ -105,8 +105,6 @@ StringID FiosGetDescText(const char **path, uint32 *total_free);
bool FiosDelete(const char *name);
/* Make a filename from a name */
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);

View File

@ -67,7 +67,7 @@ void FiosGetDrives()
#endif
if (disk == disk2) {
FiosItem *fios = FiosAlloc();
FiosItem *fios = _fios_items.Append()();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
#ifndef __INNOTEK_LIBC__

View File

@ -780,7 +780,7 @@ void FiosGetDrives()
{
#if defined(WINCE)
/* WinCE only knows one drive: / */
FiosItem *fios = FiosAlloc();
FiosItem *fios = _fios_items.Append()();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
snprintf(fios->name, lengthof(fios->name), PATHSEP "");
@ -791,7 +791,7 @@ void FiosGetDrives()
GetLogicalDriveStrings(sizeof(drives), drives);
for (s = drives; *s != '\0';) {
FiosItem *fios = FiosAlloc();
FiosItem *fios = _fios_items.Append()();
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);