Differences From Artifact [f04b110da0]:
- File
src/OFURLHandler_file.m
— part of check-in
[c162213e4a]
at
2018-08-19 01:04:03
on branch trunk
— Do not use lstat() on Nintendo 3DS
lstat() exists, but just crashes. (user: js, size: 30299) [annotate] [blame] [check-ins using]
To Artifact [39fecea33b]:
- File src/OFURLHandler_file.m — part of check-in [698a1b8b13] at 2018-08-25 18:58:24 on branch trunk — OFFileManager: Make sure the FS is initialized (user: js, size: 30299) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
437 438 439 440 441 442 443 | #ifdef OF_WINDOWS HMODULE module; #endif if (self != [OFURLHandler_file class]) return; | < < < < < < | 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | #ifdef OF_WINDOWS HMODULE module; #endif if (self != [OFURLHandler_file class]) return; #ifdef OF_AMIGAOS4 if ((DOSBase = OpenLibrary("dos.library", 36)) == NULL) @throw [OFInitializationFailedException exceptionWithClass: self]; if ((IDOS = (struct DOSIFace *) GetInterface(DOSBase, "main", 1, NULL)) == NULL) |
︙ | ︙ | |||
476 477 478 479 480 481 482 483 484 485 486 487 488 489 | #ifdef OF_WINDOWS if ((module = LoadLibrary("kernel32.dll")) != NULL) func_CreateSymbolicLinkW = (WINAPI BOOLEAN (*)(LPCWSTR, LPCWSTR, DWORD)) GetProcAddress(module, "CreateSymbolicLinkW"); #endif } + (bool)of_directoryExistsAtPath: (OFString *)path { of_stat_t s; if (of_stat(path, &s) == -1) | > > > > > > | 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 | #ifdef OF_WINDOWS if ((module = LoadLibrary("kernel32.dll")) != NULL) func_CreateSymbolicLinkW = (WINAPI BOOLEAN (*)(LPCWSTR, LPCWSTR, DWORD)) GetProcAddress(module, "CreateSymbolicLinkW"); #endif /* * Make sure OFFile is initialized. * On some systems, this is needed to initialize the file system driver. */ [OFFile class]; } + (bool)of_directoryExistsAtPath: (OFString *)path { of_stat_t s; if (of_stat(path, &s) == -1) |
︙ | ︙ |