Load/Save: Fixed "Backspace" shortcut (previous directory), broken recently.

Load/Save: Fixed "Backspace" shortcut detecting root only on MS filesystems.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@371 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2008-12-05 23:28:50 +00:00
parent 09ba984aa6
commit d6d03dc6c7

View File

@ -2856,9 +2856,12 @@ byte Bouton_Load_ou_Save(byte Load, byte Image)
break; break;
case SDLK_BACKSPACE : // Backspace case SDLK_BACKSPACE : // Backspace
*Fichier_recherche=0; *Fichier_recherche=0;
if (Principal_Repertoire_courant[3]) // Si on n'est pas à la racine... // Si le choix ".." est bien en tête des propositions...
{ // ... on va dans le répertoire parent. if (!strcmp(Liste_du_fileselect->NomComplet,".."))
{
// On va dans le répertoire parent.
strcpy(Principal_Nom_fichier,".."); strcpy(Principal_Nom_fichier,"..");
Type_selectionne=1;
On_a_clicke_sur_OK=1; On_a_clicke_sur_OK=1;
} }
break; break;