- Fixed the Amiga volumes stuff in init.c, although i think it should be
removed again since it is impossible to differentiate between volumes using only a single character. - Made the OS4 "show drives" code work on all amiga platforms (hopefully) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@468 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
11
files.c
11
files.c
@@ -267,7 +267,7 @@ void Lire_liste_des_fichiers(byte Format_demande)
|
||||
Liste_Nb_elements=Liste_Nb_repertoires+Liste_Nb_fichiers;
|
||||
}
|
||||
|
||||
#ifdef __amigaos4__
|
||||
#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
|
||||
void bstrtostr( BSTR in, STRPTR out, TEXT max )
|
||||
{
|
||||
STRPTR iptr;
|
||||
@@ -295,23 +295,22 @@ void Lire_liste_des_lecteurs(void)
|
||||
Liste_Nb_fichiers=0;
|
||||
Liste_Nb_repertoires=0;
|
||||
|
||||
// AmigaOS4
|
||||
#ifdef __amigaos4__
|
||||
#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
|
||||
{
|
||||
struct DosList *dl;
|
||||
char tmp[256];
|
||||
|
||||
dl = IDOS->LockDosList( LDF_VOLUMES | LDF_READ );
|
||||
dl = LockDosList( LDF_VOLUMES | LDF_READ );
|
||||
if( dl )
|
||||
{
|
||||
while( ( dl = IDOS->NextDosEntry( dl, LDF_VOLUMES | LDF_READ ) ) )
|
||||
while( ( dl = NextDosEntry( dl, LDF_VOLUMES | LDF_READ ) ) )
|
||||
{
|
||||
bstrtostr( dl->dol_Name, tmp, 254 );
|
||||
strcat( tmp, ":" );
|
||||
Ajouter_element_a_la_liste( tmp, 2 );
|
||||
Liste_Nb_repertoires++;
|
||||
}
|
||||
IDOS->UnLockDosList( LDF_VOLUMES | LDF_READ );
|
||||
UnLockDosList( LDF_VOLUMES | LDF_READ );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user