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, ':');
26 strcpy(Buffer, Path+1);
27 return strlen(Path) - 1;
33 for(pos = Path; pos < colon; pos ++)
39 len = strlen("/Mount/");
42 strcpy(Buffer, "/Mount/");
43 strncat(Buffer+strlen("/Mount/"), Path, colon - Path);
44 strcat(Buffer, colon + 1);
51 if( !gsWorkingDirectory[0] ) {
52 getcwd(gsWorkingDirectory, 1024);
55 len = strlen("/Native");
56 len += strlen( gsWorkingDirectory ) + 1;
59 strcpy(Buffer, "/Native");
60 strcat(Buffer, gsWorkingDirectory);