add LoadFontGraphicsData to Rom

This commit is contained in:
scawful
2024-07-23 20:59:34 -04:00
parent 90933517c4
commit 88e91859b6
2 changed files with 67 additions and 0 deletions

View File

@@ -164,6 +164,11 @@ class Rom : public core::ExperimentFlags {
*/
absl::Status LoadAllGraphicsData();
/**
* @brief Loads the font graphics data from the Rom.
*/
absl::Status LoadFontGraphicsData();
/**
* Load Rom data from a file.
*
@@ -536,6 +541,7 @@ class Rom : public core::ExperimentFlags {
void SaveGroupsToRom();
auto resource_label() { return &resource_label_manager_; }
auto font_gfx_data() { return font_gfx_data_; }
private:
struct WriteAction {
@@ -590,6 +596,7 @@ class Rom : public core::ExperimentFlags {
Bytes rom_data_;
Bytes graphics_buffer_;
Bytes font_gfx_data_;
Z3_Version version_ = Z3_Version::US;
gfx::BitmapTable graphics_bin_;