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:
16
linux.c
16
linux.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user