qt: Don't normalize paths on non-Windows
This commit is contained in:
@@ -238,10 +238,12 @@ plat_path_abs(char *path)
|
||||
void
|
||||
plat_path_normalize(char* path)
|
||||
{
|
||||
#ifdef Q_OS_WINDOWS
|
||||
while (*path++ != 0)
|
||||
{
|
||||
if (*path == '\\') *path = '/';
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -178,6 +178,7 @@ inital()
|
||||
}
|
||||
|
||||
initialized = 1;
|
||||
atexit(closeal);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -285,10 +285,7 @@ plat_path_abs(char *path)
|
||||
void
|
||||
plat_path_normalize(char* path)
|
||||
{
|
||||
while (*path++ != 0)
|
||||
{
|
||||
if (*path == '\\') *path = '/';
|
||||
}
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user