Closed meleu closed 7 years ago
Oooops! I already detected a problem, please don't merge it!!
OK. I think it's better now.
That find
returns the full path file name to the font. Then I needed to add some logic...
But, still, test it before merging! ;-)
Merged! Thanks!
I've added readonly RESULT_SPLASH="$home/RetroPie/splashscreens/fun-fact-splashscreen.png"
so the new splashscreen is created in the right folder.
Sweet! 😉
Again: THIS CODE WASN'T TESTED! Test it before merging.
renamed
ES_DIR
toES_THEMES_DIR
and added a trailing/themes
to its content.renamed
get_theme_font()
toget_font()
.moved all logic to get the font to
get_font()
. Included your suggestion tofind
ttf files. ;-)removed
DEFAULT_FONT
. The same goal is achieved by getting the font of carbon theme.tweaked the
get_current_theme()
to be a sed oneliner. By the way, I was wrong on my comment about your RegEx. You need to match^.*
to achieve your goal. Then your regex is perfect. ;)