Files
Richard Stanway cfc81c9ad4 libobs-d3d11: Avoid exceptions in shader cache file handling
We're still getting crash reports from this code and it seems like C++
file I/O with exceptions set is a minefield - even closing a file in an
exception handler can trigger further exceptions from buffer flushes for
example. Using std::filesystem to check the file exists before opening
it also introduces exceptions and is a pointless TOCTOU check anyway.

This commit removes the exception bits from the streams and relies on
ifstream operator bool and ofstream fail() instead, greatly reducing the
number of possible exception generating paths we need to worry about.
2026-09-18 16:58:06 -04:00
..
2026-06-09 13:41:19 -04:00