Unix: Separate XDG_DATA_DIRS paths by colon instead of semicolon, fixes #3946.

This commit is contained in:
OBattler
2023-12-27 21:13:55 +01:00
parent b72ed07964
commit 87f5d01fda

View File

@@ -816,7 +816,7 @@ plat_init_rom_paths(void)
while (xdg_rom_paths[strlen(xdg_rom_paths) - 1] == ':') { while (xdg_rom_paths[strlen(xdg_rom_paths) - 1] == ':') {
xdg_rom_paths[strlen(xdg_rom_paths) - 1] = '\0'; xdg_rom_paths[strlen(xdg_rom_paths) - 1] = '\0';
} }
while ((cur_xdg_rom_path = local_strsep(&xdg_rom_paths, ";")) != NULL) { while ((cur_xdg_rom_path = local_strsep(&xdg_rom_paths, ":")) != NULL) {
char real_xdg_rom_path[1024] = { '\0' }; char real_xdg_rom_path[1024] = { '\0' };
strcat(real_xdg_rom_path, cur_xdg_rom_path); strcat(real_xdg_rom_path, cur_xdg_rom_path);
path_slash(real_xdg_rom_path); path_slash(real_xdg_rom_path);