Commit 992d484
committed
perf: disable CWin32ReadOnlyFile to prevent duplicate stat calls
* when a file doesn't exist in a search path, then CWin32ReadOnlyFile can't
open that file. and then we try yet another open in CStdioFile
* technically, we could refactor the open code to be able to communicate
an error code, but I didn't see much point to using Win32 specific files
* I think there are some cases where not using CWin32ReadOnlyFile can break
some demo playback on Windows, so I might either fix that or do the above1 parent 3da9f79 commit 992d484
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
0 commit comments