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:
parent
09ba984aa6
commit
d6d03dc6c7
@ -2856,9 +2856,12 @@ byte Bouton_Load_ou_Save(byte Load, byte Image)
|
||||
break;
|
||||
case SDLK_BACKSPACE : // Backspace
|
||||
*Fichier_recherche=0;
|
||||
if (Principal_Repertoire_courant[3]) // Si on n'est pas à la racine...
|
||||
{ // ... on va dans le répertoire parent.
|
||||
// Si le choix ".." est bien en tête des propositions...
|
||||
if (!strcmp(Liste_du_fileselect->NomComplet,".."))
|
||||
{
|
||||
// On va dans le répertoire parent.
|
||||
strcpy(Principal_Nom_fichier,"..");
|
||||
Type_selectionne=1;
|
||||
On_a_clicke_sur_OK=1;
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user