This commit is contained in:
Chris
2026-02-24 17:49:54 +01:00
parent b4cccb0eb3
commit f6e53fa7c6
30 changed files with 526 additions and 320 deletions

View File

@@ -147,18 +147,11 @@ void fat32_normalize_path(const char *path, char *normalized) {
// Initialize with current directory or root
// If drive changed, we assume root of that drive
if (p[0] == '/') {
temp[0] = '/';
temp[1] = 0;
fs_strcpy(temp, "/");
temp_len = 1;
} else {
if (drive != current_drive) {
temp[0] = '/';
temp[1] = 0;
temp_len = 1;
} else {
fs_strcpy(temp, current_dir);
temp_len = fs_strlen(temp);
}
fs_strcpy(temp, current_dir);
temp_len = fs_strlen(temp);
}
int i = 0;