Load/Save: "Select Drive" button. Allows a way for the AmigaOS4 version to display the list of drives / volume names.
Peter, you can plug in Lire_liste_des_lecteurs(void) to enumerate the drives.
Additionally, if you want to display drive icons as well, you have a spot in
Rechercher_drives(void) :
For each drive, call Ajouter_lecteur(car, icon, string);
* car is the displayed character
* string is the drive name "df0:", "mypictures:" etc. (string will be copied)
* icon is one of :
LECTEUR_FLOPPY_3_5
LECTEUR_FLOPPY_5_25
LECTEUR_HDD
LECTEUR_CDROM
LECTEUR_NETWORK
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@309 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
6
struct.h
6
struct.h
@@ -106,8 +106,8 @@ struct Fenetre_Bouton_special
|
||||
struct T_Drive
|
||||
{
|
||||
char Lettre;
|
||||
byte Type; // 0: Diskette 3"« / 1: Diskette 5"¬ / 2: HDD / 3: CD-ROM / 4: Logique
|
||||
char Chemin[4]; // Reservé pour "x:\", ou "/", ou "~"
|
||||
byte Type; // 0: Diskette 3.5" / 1: Diskette 5.25" / 2: HDD / 3: CD-ROM / 4: Logique
|
||||
char *Chemin; // Reservé pour "x:\", ou "/", "DF0:", etc.
|
||||
};
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ struct Element_de_liste_de_fileselect
|
||||
{
|
||||
char NomAbrege[13]; // Le nom tel qu'affiché dans le fileselector
|
||||
char NomComplet[256]; // Le nom du fichier ou du répertoire
|
||||
byte Type; // Type d'élément : 0 = Fichier, 1 = Répertoire
|
||||
byte Type; // Type d'élément : 0 = Fichier, 1 = Répertoire, 2 = Lecteur
|
||||
|
||||
// données de chaînage de la liste
|
||||
struct Element_de_liste_de_fileselect * Suivant;
|
||||
|
||||
Reference in New Issue
Block a user