Add error handling to SnesPalette and SnesColor member fns
This commit is contained in:
@@ -79,7 +79,8 @@ absl::Status Inventory::BuildTileset() {
|
||||
test_.push_back(tilesheets_[i]);
|
||||
}
|
||||
tilesheets_bmp_.Create(128, 0x130, 64, test_);
|
||||
palette_ = rom()->palette_group("hud")[0];
|
||||
ASSIGN_OR_RETURN(auto hud_pal_group, rom()->palette_group("hud"));
|
||||
palette_ = hud_pal_group[0];
|
||||
tilesheets_bmp_.ApplyPalette(palette_);
|
||||
rom()->RenderBitmap(&tilesheets_bmp_);
|
||||
return absl::OkStatus();
|
||||
|
||||
Reference in New Issue
Block a user