qt: Don't normalize paths on non-Windows

This commit is contained in:
Cacodemon345
2022-03-04 14:00:24 +06:00
parent 5e4cb50da0
commit d695ca3cc9
3 changed files with 4 additions and 4 deletions

View File

@@ -238,10 +238,12 @@ plat_path_abs(char *path)
void void
plat_path_normalize(char* path) plat_path_normalize(char* path)
{ {
#ifdef Q_OS_WINDOWS
while (*path++ != 0) while (*path++ != 0)
{ {
if (*path == '\\') *path = '/'; if (*path == '\\') *path = '/';
} }
#endif
} }
void void

View File

@@ -178,6 +178,7 @@ inital()
} }
initialized = 1; initialized = 1;
atexit(closeal);
} }
void void

View File

@@ -285,10 +285,7 @@ plat_path_abs(char *path)
void void
plat_path_normalize(char* path) plat_path_normalize(char* path)
{ {
while (*path++ != 0) /* No-op. */
{
if (*path == '\\') *path = '/';
}
} }
void void