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 for(pos = Path; pos < colon; pos ++)
32 len = strlen("/Mount/");
35 strcpy(Buffer, "/Mount/");
36 strncat(Buffer+strlen("/Mount/"), Path, colon - Path);
37 strcat(Buffer, colon + 1);
44 if( !gsWorkingDirectory[0] ) {
45 getcwd(gsWorkingDirectory, 1024);
48 len = strlen("/Native");
49 len += strlen( gsWorkingDirectory ) + 1;
52 strcpy(Buffer, "/Native");
53 strcat(Buffer, gsWorkingDirectory);