dolphin/Source/Core/InputCommon/DynamicInputTextures
Joshua Vandaële 5a6dc310c0
DITConfiguration: Prevent a crash if images fail to load
Recently came across a strange issue where Dolphin would hard crash in most games with this error:

```sh
/usr/include/c++/15.2.1/optional:1165: constexpr const _Tp* std::optional<_Tp>::operator->() const [with _Tp = InputCommon::ImagePixelData]: Assertion 'this->_M_is_engaged()' failed.
```

The culprit turned out to be accessing `host_key_image` which is an `std::optional` thay may return `std::nullopt`. I'm not sure why this issue started occuring for me since I've had no issue with my Dynamic Input Textures in the past? But this fixes a crash if the image fails to load.
2025-11-29 23:54:48 +01:00
..
DITConfiguration.cpp DITConfiguration: Prevent a crash if images fail to load 2025-11-29 23:54:48 +01:00
DITConfiguration.h Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures 2025-03-22 14:53:02 -05:00
DITData.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
DITSpecification.cpp Modernize std::all_of with ranges 2024-12-15 19:50:34 -08:00
DITSpecification.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00