Add file management to ResourceLabelManager, include in settings

This commit is contained in:
scawful
2024-01-22 19:53:42 -05:00
parent 394f1646e6
commit a443efc8a4
4 changed files with 81 additions and 24 deletions

View File

@@ -347,6 +347,10 @@ absl::Status ROM::LoadFromFile(const absl::string_view& filename,
LoadGfxGroups();
}
// Set up the resource labels
std::string resource_label_filename = absl::StrFormat("%s.labels", filename);
resource_label_manager_.LoadLabels(resource_label_filename);
// Set is_loaded_ flag and return success
is_loaded_ = true;
return absl::OkStatus();