From aba225c88d011b819690dff0a2a17de32c616443 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 27 Mar 2005 10:35:01 +0000 Subject: (svn r2084) Set the name for drive items --- os2.c | 6 +++--- win32.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/os2.c b/os2.c index 449a66f80..284757e40 100644 --- a/os2.c +++ b/os2.c @@ -199,6 +199,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DRIVE; + sprintf(fios->name, "%c:", 'A' + disk - 1); sprintf(fios->title, "%c:", 'A' + disk - 1); } } @@ -316,9 +317,8 @@ FiosItem *FiosGetScenarioList(int *num, int mode) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DRIVE; - fios->title[0] = disk + 'A'-1; - fios->title[1] = ':'; - fios->title[2] = 0; + sprintf(fios->name, "%c:", 'A' + disk - 1); + sprintf(fios->title, "%c:", 'A' + disk - 1); } } diff --git a/win32.c b/win32.c index 97d87255f..3d07989d6 100644 --- a/win32.c +++ b/win32.c @@ -1673,6 +1673,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode) for (s = drives; *s != '\0';) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DRIVE; + sprintf(fios->name, "%c:", s[0]); sprintf(fios->title, "%c:", s[0]); while (*s++ != '\0') {} } @@ -1777,6 +1778,7 @@ FiosItem *FiosGetScenarioList(int *num, int mode) for (s = drives; *s != '\0';) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DRIVE; + sprintf(fios->name, "%c:", s[0]); sprintf(fios->title, "%c:", s[0]); while (*s++ != '\0') {} } -- cgit v1.2.3-70-g09d2