Fixed the broken StarFileName option.
This commit is contained in:
parent
e748a0687e
commit
f559159e2e
1 changed files with 6 additions and 3 deletions
|
@ -2011,13 +2011,16 @@ void IEC_Commands::OpenFile()
|
||||||
char cwd[1024];
|
char cwd[1024];
|
||||||
if (f_getcwd(cwd, 1024) == FR_OK)
|
if (f_getcwd(cwd, 1024) == FR_OK)
|
||||||
{
|
{
|
||||||
if (strcasecmp(cwd, "/1541") == 0)
|
const char* folder = strstr(cwd, "/");
|
||||||
|
if (folder)
|
||||||
|
{
|
||||||
|
if (strcasecmp(folder, "/1541") == 0)
|
||||||
{
|
{
|
||||||
//DEBUG_LOG("use star %s\r\n", starFileName);
|
|
||||||
strncpy(filename, starFileName, sizeof(filename) - 1);
|
strncpy(filename, starFileName, sizeof(filename) - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (toupper(filetype[0]) == 'L')
|
if (toupper(filetype[0]) == 'L')
|
||||||
|
|
Loading…
Reference in a new issue