mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Control on simu path to avoid double // and search a file over the
network ...
This commit is contained in:
parent
cb2e3325cd
commit
5db4aa57b1
1 changed files with 2 additions and 1 deletions
|
@ -466,10 +466,11 @@ FATFS g_FATFS_Obj;
|
||||||
char *convertSimuPath(const char *path)
|
char *convertSimuPath(const char *path)
|
||||||
{
|
{
|
||||||
static char result[1024];
|
static char result[1024];
|
||||||
if (path[0] == '/')
|
if (path[0] == '/' && strcmp(simuSdDirectory, "/") != 0)
|
||||||
sprintf(result, "%s%s", simuSdDirectory, path);
|
sprintf(result, "%s%s", simuSdDirectory, path);
|
||||||
else
|
else
|
||||||
strcpy(result, path);
|
strcpy(result, path);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue