3 * - By John Hodge (thePowersGang)
8 #include <acess_logging.h>
14 char gsWorkingDirectory[1024];
18 size_t DiskTool_int_TranslatePath(char *Buffer, const char *Path)
21 const char *colon = strchr(Path, ':');
27 strcpy(Buffer, Path+1);
30 else if( Path[0] == ':' )
32 len = strlen("/Devices/LVM/");
33 len += strlen(Path+1);
35 strcpy(Buffer, "/Devices/LVM/");
36 strcat(Buffer, Path+1);
42 for(pos = Path; pos < colon; pos ++)
48 len = strlen("/Mount/");
51 strcpy(Buffer, "/Mount/");
52 strncat(Buffer+strlen("/Mount/"), Path, colon - Path);
53 strcat(Buffer, colon + 1);
59 if( !gsWorkingDirectory[0] ) {
60 getcwd(gsWorkingDirectory, 1024);
63 len = strlen("/Native");
64 len += strlen( gsWorkingDirectory ) + 1;
67 strcpy(Buffer, "/Native");
68 strcat(Buffer, gsWorkingDirectory);