Don't hardcode Universal-Updater's font paths

This commit is contained in:
Pk11
2021-08-27 23:52:55 -05:00
parent bda2aab14b
commit b53357f753
2 changed files with 12 additions and 13 deletions
+6 -6
View File
@@ -88,25 +88,25 @@ namespace Gui {
Initialize the GUI.
Call this when initializing.
FontPath: The font to use.
FontPaths: The locations to check for the font.
*/
bool init(const char *FontPath = nullptr);
bool init(const std::vector<std::string> &FontPaths);
/*
Load a Font. (NFTR)
fnt: The Font variable which should be initialized.
Path: Path to the NFTR file.
Paths: The locations to check for the NFTR file.
if you're unsure, just call 'Gui::init();' and it will load the default font.
*/
bool loadFont(Font &fnt, const char *Path = nullptr);
bool loadFont(Font &fnt, const std::vector<std::string> &Paths);
/*
Reinit the GUI.
FontPath: The font to use.
FontPaths: The locations to check for the font.
*/
bool reinit(const char *FontPath = nullptr);
bool reinit(const std::vector<std::string> &FontPaths);
/*
Draws a centered String.