mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Using platform_get_path_separator for getting the filename now
This commit is contained in:
@@ -56,9 +56,7 @@ bool filename_valid_characters(const utf8 *filename)
|
||||
const char *path_get_filename(const utf8 *path)
|
||||
{
|
||||
// Find last slash or backslash in the path
|
||||
char *filename = strrchr(path, '/');
|
||||
if (filename == NULL)
|
||||
filename = strrchr(path, '\\');
|
||||
char *filename = strrchr(path, platform_get_path_separator());
|
||||
|
||||
assert(filename != NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user