IOCTL and CD-ROM changes.

This commit is contained in:
OBattler
2024-05-19 21:17:57 +02:00
parent 9af55412db
commit 641da43f15
13 changed files with 424 additions and 231 deletions

View File

@@ -278,7 +278,7 @@ int
path_abs(char *path)
{
#ifdef Q_OS_WINDOWS
if ((path[1] == ':') || (path[0] == '\\') || (path[0] == '/'))
if ((path[1] == ':') || (path[0] == '\\') || (path[0] == '/') || (strstr(path, "ioctl://") == path))
return 1;
return 0;
@@ -291,10 +291,13 @@ void
path_normalize(char *path)
{
#ifdef Q_OS_WINDOWS
while (*path++ != 0) {
if (*path == '\\')
*path = '/';
}
if (strstr(path, "ioctl://") != path) {
while (*path++ != 0) {
if (*path == '\\')
*path = '/';
}
} else
path[8] = path[9] = path[11] = '\\';
#endif
}