Standardize a method to gracefully handle missing files #461
Labels
data layer
data files, formats, and IO
help wanted
Extra attention is needed
refactor
Refactor something to make it better
This is more of an epic, and surely will be a recurring theme throughout the project...
Given how data-driven and customizable this game is intended to be, we can expect that files will sometimes be missing, even if they're part of our own distribution. For example I ran into an issue when switching branches where some fonts or at least their import files were missing, and this brought down half of the render loop. Whenever we read a file we should assume that it may fail, and try to deal with it. Depending on the file, this may include any combination of:
?.
to access itThe text was updated successfully, but these errors were encountered: