WIP: Whenever an image fails to load, it is defaulted to a 32x32 Fuchsia bitmap.
2 unresolved threads
2 unresolved threads
Compare changes
+ 13
− 2
@@ -22,6 +22,8 @@
@@ -41,8 +43,17 @@ std::unique_ptr<Resource> ImageLoader::Load(
This only checks if the file exists. However, the file might fail to load for other reasons (e.g., it might be a corrupt file or an unsupported format)
By Martin Bellgardt on 2018-03-27T08:27:53 (imported from GitLab)
FreeImage does not check whether a file is corrupt either (and it is not its job to do so), and crashes in that case. Which means the previous logic did not really change.
Aside from this, boost::filesystem probably offers options for checking whether a file is valid. I will look into this.
By Ali Can Demiralp on 2018-03-27T11:37:02 (imported from GitLab)