Removed some old DOS code, unified (for gcc) the handling of file paths.

Probably fixed some linux issues there.
Fixed the filename search by typing in Save/load.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@196 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-04 21:56:02 +00:00
parent 16f642c689
commit dd984538bf
10 changed files with 108 additions and 187 deletions

16
linux.c
View File

@@ -5,22 +5,6 @@
#include <stdio.h>
#include <sys/stat.h>
void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
{
int i=0, Position_Du_Dernier_Slash=0;
do
{
Chemin[i]=Buffer[i];
if (Buffer[i]=='/')
Position_Du_Dernier_Slash=i;
i++;
}while (Buffer[i]!=0);
i=Position_Du_Dernier_Slash+1;
Chemin[i]=0;
strcpy(Nom_Fichier,Buffer+i);
}
int filelength(int fichier)
{
struct stat infos_fichier;