mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 02:35:46 +01:00
Title Sequence editor
This commit is contained in:
@@ -41,6 +41,16 @@ int mph_to_kmph(int mph)
|
||||
return (mph * 1648) / 1024;
|
||||
}
|
||||
|
||||
bool filename_valid_characters(const char *filename)
|
||||
{
|
||||
for (int i = 0; filename[i] != '\0'; i++) {
|
||||
if (filename[i] == '\\' || filename[i] == '/' || filename[i] == ':' || filename[i] == '?' ||
|
||||
filename[i] == '*' || filename[i] == '<' || filename[i] == '>' || filename[i] == '|')
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *path_get_filename(const char *path)
|
||||
{
|
||||
const char *result, *ch;
|
||||
|
||||
Reference in New Issue
Block a user