Add some options to FileMenu

!Warning, there is no confirmation yet on deletions
This commit is contained in:
SuchMemeManySkill
2020-12-25 22:19:04 +01:00
parent 9588ffb89a
commit 9c47d11843
4 changed files with 42 additions and 5 deletions

View File

@@ -20,4 +20,13 @@ void MaskIn(char *mod, u32 bitstream, char mask){
bitstream >>= 1;
mod++;
}
}
// non-zero is yes, zero is no
bool StrEndsWith(char *begin, char *end){
begin = strrchr(begin, *end);
if (begin != NULL)
return !strcmp(begin, end);
return 0;
}