Mercurial > repos > blastem
comparison util.c @ 2156:237068a25523
Added UI for setting firmware paths
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Apr 2022 18:41:16 -0700 |
parents | 441d5d6cea2f |
children | bdd83b47d78a |
comparison
equal
deleted
inserted
replaced
2152:c3ee42c89b27 | 2156:237068a25523 |
---|---|
351 return NULL; | 351 return NULL; |
352 } | 352 } |
353 return strdup(lastdot+1); | 353 return strdup(lastdot+1); |
354 } | 354 } |
355 | 355 |
356 uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts) | 356 uint8_t path_matches_extensions(char *path, const char **ext_list, uint32_t num_exts) |
357 { | 357 { |
358 char *ext = path_extension(path); | 358 char *ext = path_extension(path); |
359 if (!ext) { | 359 if (!ext) { |
360 return 0; | 360 return 0; |
361 } | 361 } |