mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
[Taranis] Possibility to rename a directory in SD Manager
This commit is contained in:
parent
0eeb0437db
commit
2e514565cc
13 changed files with 71 additions and 21 deletions
|
@ -208,12 +208,8 @@ char *strAppendFilename(char *dest, const char *filename, const int size)
|
|||
char *getFileExtension(char *filename, int size)
|
||||
{
|
||||
for (int i=0; i<size-LEN_FILE_EXTENSION; ++i) {
|
||||
if (filename[i] == '.') {
|
||||
for (int j=i+1; j<size; ++j) {
|
||||
if (filename[j] == '\0') {
|
||||
return &filename[i];
|
||||
}
|
||||
}
|
||||
if (filename[i] == '.' || filename[i] == '\0') {
|
||||
return &filename[i];
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue