Skip to content

Commit

Permalink
Fix merge conflit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCS1337 committed Aug 1, 2024
1 parent 44c52bc commit 8c19eea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codemp/qcommon/files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ FILE* missingFiles = NULL;
# endif
#endif

const char *get_filename(const char *path) {
const char *slash = strrchr(path, PATH_SEP);
if (!slash || slash == path) return "";
return slash + 1;
}

const char *get_filename_ext(const char *filename) {
const char *dot = strrchr(filename, '.');
if (!dot || dot == filename) return "";
Expand Down

0 comments on commit 8c19eea

Please sign in to comment.