I didn't test this code!! So, please test it before merging.
I'm away from my retropie currently, then unable to test this code. But made some changes, such as:
defined a DEFAULT_SPLASH.
setting ES_DIR and DEFAULT_FONT as readonly.
TODO: DEFAUL_FONT shouldn't be hardcoded. What if theme maintainer change this font in the future?
TODO: improve create_fun_fact() and get_theme_font() logic.
moved check_dependencies function call to the bottom.
added a bunch of " around variables/subshells to avoid possible problems with filenames with spaces.
added a way to let the user specify the splash to be used as template via command line ./script path/to/splash.png. The default is the pixel splash present in this repo.
I didn't test this code!! So, please test it before merging.
I'm away from my retropie currently, then unable to test this code. But made some changes, such as:
DEFAULT_SPLASH
.ES_DIR
andDEFAULT_FONT
as readonly.DEFAUL_FONT
shouldn't be hardcoded. What if theme maintainer change this font in the future?create_fun_fact()
andget_theme_font()
logic.check_dependencies
function call to the bottom."
around variables/subshells to avoid possible problems with filenames with spaces../script path/to/splash.png
. The default is the pixel splash present in this repo.