This commit is contained in:
Krzosa Karol
2025-04-03 10:52:11 +02:00
parent c8e73ac245
commit 706bd89385
11 changed files with 759 additions and 78 deletions

View File

@@ -48,7 +48,7 @@ fn mt_file_t *mt_find_file_exact(mt_files_t *root, s8_t path) {
fn mt_file_t *mt_find_file(mt_files_t *root, s8_t name) {
for (mt_file_t *it = root->first; it; it = it->next) {
if (s8_ends_with(name, it->path, false)) return it;
if (s8_ends_with(name, it->path)) return it;
}
return NULL;
}