mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +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;
|
||||
|
||||
@@ -27,6 +27,8 @@ int squaredmetres_to_squaredfeet(int squaredMetres);
|
||||
int metres_to_feet(int metres);
|
||||
int mph_to_kmph(int mph);
|
||||
|
||||
bool filename_valid_characters(const char *filename);
|
||||
|
||||
const char *path_get_filename(const char *path);
|
||||
const char *path_get_extension(const char *path);
|
||||
void path_set_extension(char *path, const char *newExtension);
|
||||
|
||||
Reference in New Issue
Block a user