The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and does not contain game-specific logic. More...
#include <rom.h>

Classes | |
| struct | LoadOptions |
| struct | SaveSettings |
| struct | WriteAction |
Public Attributes | |
| std::array< std::array< uint8_t, 8 >, kNumMainBlocksets > | main_blockset_ids |
| std::array< std::array< uint8_t, 4 >, kNumRoomBlocksets > | room_blockset_ids |
| std::array< std::array< uint8_t, 4 >, kNumSpritesets > | spriteset_ids |
| std::array< std::array< uint8_t, 4 >, kNumPalettesets > | paletteset_ids |
Private Attributes | |
| unsigned long | size_ = 0 |
| std::string | title_ = "ROM not loaded" |
| std::string | filename_ |
| std::string | short_name_ |
| std::vector< uint8_t > | rom_data_ |
| project::ResourceLabelManager | resource_label_manager_ |
| bool | dirty_ = false |
| std::vector< uint8_t > | graphics_buffer_ |
| GraphicsLoadDiagnostics | diagnostics_ |
| gfx::PaletteGroupMap | palette_groups_ |
| zelda3_version | version_ = zelda3_version::US |
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and does not contain game-specific logic.
|
default |
|
default |
| absl::Status yaze::Rom::LoadFromFile | ( | const std::string & | filename, |
| const LoadOptions & | options = LoadOptions::Defaults() ) |
Definition at line 74 of file rom.cc.
References filename(), filename_, yaze::Rom::LoadOptions::load_resource_labels, yaze::project::ResourceLabelManager::LoadLabels(), resource_label_manager_, rom_data_, short_name_, size_, yaze::Rom::LoadOptions::strip_header, and vector().
Referenced by yaze::editor::ProposalDrawer::AcceptProposal(), yaze::editor::GraphicsEditor::DrawFileImport(), yaze::editor::GraphicsEditor::DrawObjImport(), yaze::editor::GraphicsEditor::DrawPaletteControls(), yaze::editor::GraphicsEditor::DrawTilemapImport(), yaze::cli::agent::anonymous_namespace{general_commands.cc}::EnsureRomLoaded(), yaze::cli::handlers::ProjectBuildCommandHandler::Execute(), yaze::cli::handlers::RomDiffCommandHandler::Execute(), yaze::cli::handlers::RomGenerateGoldenCommandHandler::Execute(), yaze::cli::HexDumpCommandHandler::Execute(), yaze::cli::HexCompareCommandHandler::Execute(), yaze::cli::HexAnnotateCommandHandler::Execute(), yaze::cli::handlers::ToolsExtractValuesCommandHandler::Execute(), yaze::cli::handlers::ToolsExtractGoldenCommandHandler::Execute(), yaze::cli::handlers::ToolsPatchV3CommandHandler::Execute(), yaze::cli::agent::tools::RomDiffTool::Execute(), yaze::cli::agent::tools::RomChangesTool::Execute(), yaze::cli::handlers::ToolsHarnessStateCommandHandler::GenerateHarnessState(), yaze::cli::agent::HandleAcceptCommand(), yaze::cli::HandleGfxExportLegacy(), yaze::cli::HandleGfxImportLegacy(), yaze::cli::HandleOverworldDescribeMapLegacy(), yaze::cli::HandleOverworldFindTileLegacy(), yaze::cli::HandleOverworldGetTileLegacy(), yaze::cli::HandleOverworldListWarpsLegacy(), yaze::cli::HandleOverworldSetTileLegacy(), yaze::cli::HandlePaletteExportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::cli::agent::HandleRevertCommand(), yaze::cli::resources::CommandContext::Initialize(), yaze::editor::LoadExpandedMessages(), LoadFromFile(), yaze::cli::agent::anonymous_namespace{conversation_test.cc}::LoadRomForAgent(), yaze::editor::RomFileManager::LoadRomFromFile(), yaze::cli::message::anonymous_namespace{message.cc}::LoadRomFromFlag(), main(), main(), yaze::test::IntegratedTestSuite::RunRomBasicTest(), yaze::editor::MessageEditor::SaveExpandedMessages(), and yaze::editor::MemoryEditor::Update().

| absl::Status yaze::Rom::LoadFromData | ( | const std::vector< uint8_t > & | data, |
| const LoadOptions & | options = LoadOptions::Defaults() ) |
Definition at line 147 of file rom.cc.
References data(), rom_data_, size_, and yaze::Rom::LoadOptions::strip_header.
Referenced by yaze::editor::AssemblyEditor::ApplyPatchToRom(), yaze::editor::OverworldEditor::ApplyZSCustomOverworldASM(), yaze::editor::GraphicsEditor::DrawClipboardImport(), yaze::cli::handlers::ProjectBuildCommandHandler::Execute(), yaze::cli::InitializeMockRom(), LoadFromData(), yaze::gfx::lc_lz2::ValidateCompressionResult(), and yaze::gfx::lc_lz2::ValidateCompressionResultV3().

| absl::Status yaze::Rom::SaveToFile | ( | const SaveSettings & | settings | ) |
Definition at line 164 of file rom.cc.
References dirty_, filename(), filename_, LOG_WARN, rom_data_, and vector().
Referenced by yaze::editor::RomFileManager::CreateBackup(), yaze::cli::RomSandboxManager::CreateSandbox(), yaze::cli::handlers::ProjectBuildCommandHandler::Execute(), yaze::cli::OverworldDoctorCommandHandler::Execute(), yaze::cli::handlers::ToolsPatchV3CommandHandler::Execute(), yaze::cli::agent::HandleAcceptCommand(), yaze::cli::agent::HandleCommitCommand(), yaze::cli::HandleGfxImportLegacy(), yaze::cli::HandleOverworldSetTileLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::test::RomDependentTestSuite::RunComprehensiveSaveTest(), yaze::test::E2ETestSuite::RunRomLoadSaveTest(), yaze::editor::MessageEditor::SaveExpandedMessages(), yaze::editor::RomFileManager::SaveRom(), yaze::editor::RomFileManager::SaveRomAs(), yaze::test::TestManager::TestRomSaveLoad(), and yaze_save_rom().

Definition at line 49 of file rom.h.
References rom_data_, size(), and size_.
Referenced by yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ApplyTailExpansion(), yaze::cli::agent::HandleAcceptCommand(), yaze::zelda3::LoadGameData(), and yaze::editor::MessageEditor::SaveExpandedMessages().

|
inline |
Definition at line 221 of file rom.cc.
References rom_data_, and vector().
Referenced by yaze::zelda3::TitleScreen::BuildTileset(), yaze::cli::agent::tools::PatchCheckTool::CheckHooks(), yaze::zelda3::OverworldMapScreen::Create(), yaze::zelda3::music::MusicBank::DetectExpandedMusicPatch(), yaze::test::ZSCustomOverworldTestSuite::DrawConfiguration(), yaze::zelda3::LoadDungeonMaps(), yaze::zelda3::LoadEntrances(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::LoadHoles(), yaze::zelda3::LoadItems(), yaze::zelda3::OverworldMapScreen::LoadMapData(), yaze::editor::PolyhedralEditorPanel::LoadShapes(), yaze::zelda3::TitleScreen::LoadTitleScreen(), ReadHelper(), yaze::test::E2ETestSuite::RunCorruptionDetectionTest(), yaze::test::E2ETestSuite::RunDataIntegrityTest(), yaze::test::ZSCustomOverworldTestSuite::RunDataIntegrityTest(), yaze::test::ZSCustomOverworldTestSuite::RunFeatureToggleTest(), yaze::test::E2ETestSuite::RunLargeScaleEditingTest(), yaze::test::RomDependentTestSuite::RunRomDataAccessTest(), yaze::test::E2ETestSuite::RunTransactionSystemTest(), yaze::test::ZSCustomOverworldTestSuite::RunV2UpgradeTest(), yaze::test::ZSCustomOverworldTestSuite::RunV3UpgradeTest(), yaze::test::ZSCustomOverworldTestSuite::RunVanillaBaselineTest(), yaze::zelda3::TitleScreen::Save(), yaze::zelda3::music::anonymous_namespace{music_bank.cc}::UpdateBankPointerRegisters(), yaze::cli::agent::tools::RomValidateTool::ValidateHeader(), yaze::cli::agent::tools::DataValidateTool::ValidateSprites(), yaze::test::ZSCustomOverworldTestSuite::ValidateVersionAddresses(), yaze::cli::handlers::ToolsExtractGoldenCommandHandler::WriteASMVersionInfo(), and yaze::Transaction::WriteByte().

Definition at line 228 of file rom.cc.
References rom_data_, and vector().
Referenced by yaze::zelda3::TitleScreen::BuildTileset(), yaze::zelda3::OverworldMapScreen::Create(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonRoomLoader::LoadAllRooms(), yaze::zelda3::LoadDungeonMaps(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::LoadEntrances(), yaze::zelda3::LoadEntranceTileTypes(), LoadGfxGroups(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::LoadHoles(), yaze::zelda3::Inventory::LoadItemIcons(), yaze::zelda3::TitleScreen::LoadTitleScreen(), yaze::zelda3::ObjectDimensionTable::ParseSubtype1Tables(), ReadHelper(), ReadTile16(), yaze::test::RomDependentTestSuite::RunRomDataAccessTest(), yaze::test::E2ETestSuite::RunTransactionSystemTest(), SaveGfxGroups(), yaze::zelda3::SaveGfxGroups(), yaze::cli::agent::tools::RomValidateTool::ValidateChecksum(), yaze::cli::agent::tools::DataValidateTool::ValidateEntrances(), yaze::cli::agent::tools::DataValidateTool::ValidateTiles(), yaze::Transaction::WriteColor(), and yaze::Transaction::WriteWord().

Definition at line 235 of file rom.cc.
References rom_data_, and vector().
Referenced by yaze::zelda3::LoadItems(), and yaze::Transaction::WriteLong().

| absl::StatusOr< std::vector< uint8_t > > yaze::Rom::ReadByteVector | ( | uint32_t | offset, |
| uint32_t | length ) const |
Definition at line 243 of file rom.cc.
References rom_data_, and vector().
Referenced by yaze::zelda3::music::MusicBank::LoadExpandedSongTable(), yaze::zelda3::LoadFontGraphics(), yaze::zelda3::LoadGraphics(), yaze::zelda3::music::MusicBank::LoadInstruments(), yaze::LoadLinkGraphics(), yaze::zelda3::LoadLinkGraphics(), yaze::zelda3::LoadMetadata(), yaze::editor::PolyhedralEditorPanel::LoadShapes(), ReadHelper(), yaze::test::TestManager::TestRomDataIntegrity(), and yaze::Transaction::WriteVector().

| absl::StatusOr< gfx::Tile16 > yaze::Rom::ReadTile16 | ( | uint32_t | tile16_id, |
| uint32_t | tile16_ptr ) |
Definition at line 256 of file rom.cc.
References ASSIGN_OR_RETURN, ReadWord(), vector(), and yaze::gfx::WordToTileInfo().
Referenced by yaze::editor::Tile16Editor::GetCurrentTile16Data(), and yaze::editor::Tile16Editor::SetCurrentTile().

| absl::Status yaze::Rom::WriteTile16 | ( | int | tile16_id, |
| uint32_t | tile16_ptr, | ||
| const gfx::Tile16 & | tile ) |
Definition at line 274 of file rom.cc.
References RETURN_IF_ERROR, yaze::gfx::Tile16::tile0_, yaze::gfx::Tile16::tile1_, yaze::gfx::Tile16::tile2_, yaze::gfx::Tile16::tile3_, yaze::gfx::TileInfoToWord(), vector(), and WriteShort().
Referenced by yaze::editor::Tile16Editor::CommitAllChanges(), yaze::editor::Tile16Editor::Update(), yaze::editor::Tile16Editor::UpdateAsPanel(), and yaze::editor::Tile16Editor::UpdateROMTile16Data().

Definition at line 286 of file rom.cc.
References dirty_, rom_data_, and vector().
Referenced by yaze::gfx::ZsprLoader::ApplyPaletteToRom(), yaze::gfx::ZsprLoader::ApplyToRom(), yaze::cli::handlers::ToolsPatchV3CommandHandler::ApplyV3Patch(), yaze::test::ZSCustomOverworldTestSuite::ApplyVersionPatch(), yaze::cli::agent::AgentContext::CommitPendingEdits(), yaze::cli::handlers::HexWriteCommandHandler::Execute(), yaze::cli::agent::tools::ProjectManager::RestoreSnapshot(), yaze::Transaction::Rollback(), yaze::test::E2ETestSuite::RunCorruptionDetectionTest(), yaze::test::ZSCustomOverworldTestSuite::RunFeatureToggleTest(), yaze::test::E2ETestSuite::RunLargeScaleEditingTest(), yaze::editor::GraphicsEditor::Save(), yaze::zelda3::OverworldMapScreen::Save(), yaze::zelda3::TitleScreen::Save(), yaze::zelda3::RoomEntrance::Save(), yaze::zelda3::SaveDungeonMaps(), yaze::zelda3::SaveEntrances(), yaze::zelda3::SaveExits(), yaze::editor::MessageEditor::SaveExpandedMessages(), yaze::zelda3::SaveGfxGroups(), yaze::zelda3::SaveHoles(), yaze::zelda3::SaveItems(), yaze::zelda3::music::anonymous_namespace{music_bank.cc}::UpdateBankPointerRegisters(), yaze::Transaction::WriteByte(), and WriteHelper().

Definition at line 299 of file rom.cc.
References dirty_, rom_data_, and vector().
Referenced by yaze::Transaction::Rollback(), yaze::zelda3::SaveDungeonMapTile16(), WriteColor(), WriteShort(), and yaze::Transaction::WriteWord().

Definition at line 316 of file rom.cc.
References WriteWord().
Referenced by yaze::zelda3::RoomEntrance::Save(), yaze::zelda3::SaveEntrances(), yaze::zelda3::SaveExits(), yaze::gfx::PaletteManager::SaveGroup(), yaze::zelda3::SaveHoles(), yaze::zelda3::SaveItems(), WriteHelper(), and WriteTile16().

Definition at line 320 of file rom.cc.
References dirty_, rom_data_, and vector().
Referenced by yaze::Transaction::Rollback(), yaze::zelda3::SaveItems(), and yaze::Transaction::WriteLong().

Definition at line 340 of file rom.cc.
References data(), dirty_, rom_data_, and vector().
Referenced by yaze::editor::ProposalDrawer::AcceptProposal(), yaze::cli::agent::HandleAcceptCommand(), yaze::Transaction::Rollback(), yaze::zelda3::Room::SaveObjects(), yaze::zelda3::music::MusicBank::SaveSongTable(), yaze::zelda3::Room::SaveSprites(), WriteHelper(), yaze::editor::PolyhedralEditorPanel::WriteShape(), and yaze::Transaction::WriteVector().

| absl::Status yaze::Rom::WriteColor | ( | uint32_t | address, |
| const gfx::SnesColor & | color ) |
Definition at line 357 of file rom.cc.
References yaze::gfx::SnesColor::snes(), vector(), and WriteWord().
Referenced by SavePalette(), yaze::Transaction::WriteColor(), yaze::editor::PaletteGroupPanel::WriteColorToRom(), and WriteHelper().

|
inline |
Definition at line 76 of file rom.h.
References WriteHelper().

Definition at line 83 of file rom.h.
References ReadTransaction(), and vector().
Referenced by yaze::zelda3::LoadExits(), and ReadTransaction().

|
virtual |
Definition at line 363 of file rom.cc.
References yaze::Rom::WriteAction::address, yaze::Rom::WriteAction::value, WriteByte(), WriteColor(), WriteShort(), and WriteVector().
Referenced by WriteTransaction().

Definition at line 105 of file rom.h.
References ReadByte(), ReadByteVector(), ReadWord(), and vector().

|
inline |
|
inline |
Definition at line 128 of file rom.h.
References rom_data_.
Referenced by yaze::net::CollaborationService::ApplyDiff(), yaze::core::PatchManager::ApplyEnabledPatches(), yaze::editor::PaletteControlsPanel::ApplyPaletteToAllSheets(), yaze::gfx::ZsprLoader::ApplyPaletteToRom(), yaze::editor::PaletteControlsPanel::ApplyPaletteToSheet(), yaze::editor::AssemblyEditor::ApplyPatchToRom(), yaze::cli::Tile16ProposalGenerator::ApplyProposal(), yaze::net::CollaborationService::ApplyRomSync(), yaze::editor::LinkSpritePanel::ApplySelectedPalette(), yaze::gfx::ZsprLoader::ApplyToRom(), yaze::emu::render::SaveStateManager::CalculateRomChecksum(), yaze::zelda3::CalculateRoomSize(), yaze::editor::CheckRomState(), yaze::cli::agent::tools::ProjectToolUtils::ComputeRomChecksum(), yaze::net::RomVersionManager::ComputeRomHash(), yaze::zelda3::Room::CopyRoomGraphicsToBuffer(), yaze::zelda3::OverworldMapScreen::Create(), yaze::zelda3::Inventory::Create(), yaze::zelda3::TitleScreen::Create(), yaze::cli::RomSandboxManager::CreateSandbox(), yaze::net::RomVersionManager::CreateSnapshot(), yaze::test::TestManager::CreateTestRomCopy(), yaze::net::RomVersionManager::DetectCorruption(), yaze::zelda3::DiggableTilesPatch::DetectZSDiggingHooks(), yaze::editor::LinkSpritePanel::Draw(), yaze::editor::PaletteControlsPanel::Draw(), yaze::editor::PolyhedralEditorPanel::Draw(), yaze::editor::PaletteGroupPanel::Draw(), yaze::zelda3::RoomLayout::Draw(), yaze::editor::AssemblyEditor::DrawAssembleMenu(), yaze::editor::AssemblyEditor::DrawBuildOutput(), yaze::editor::GraphicsEditor::DrawClipboardImport(), yaze::test::E2ETestSuite::DrawConfiguration(), yaze::test::RomDependentTestSuite::DrawConfiguration(), yaze::test::ZSCustomOverworldTestSuite::DrawConfiguration(), yaze::zelda3::ObjectDrawer::DrawDoor(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonRoomSelector::DrawEntranceSelector(), yaze::zelda3::ObjectDrawer::DrawObject(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::SettingsPanel::DrawPatchSettings(), yaze::editor::ProjectManagementPanel::DrawRomManagement(), yaze::editor::StatusBar::DrawRomSegment(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonRoomSelector::DrawRoomSelector(), yaze::editor::UICoordinator::DrawSessionButton(), yaze::editor::AgentEditor::DrawStatusPanel(), yaze::test::TestManager::DrawTestDashboard(), yaze::editor::AssemblyEditor::DrawToolbarContent(), yaze::editor::OverworldEditor::DrawV3Settings(), yaze::gui::FlagsMenu::DrawZSCustomOverworldFlags(), yaze::gui::DungeonObjectEmulatorPreview::EnsureInitialized(), yaze::emu::Emulator::EnsureInitialized(), yaze::cli::agent::anonymous_namespace{general_commands.cc}::EnsureRomLoaded(), yaze::cli::MessageDoctorCommandHandler::Execute(), yaze::cli::handlers::RomInfoCommandHandler::Execute(), yaze::cli::handlers::RomValidateCommandHandler::Execute(), yaze::cli::GraphicsDoctorCommandHandler::Execute(), yaze::cli::SpriteDoctorCommandHandler::Execute(), yaze::cli::agent::tools::ProjectStatusTool::Execute(), yaze::cli::agent::tools::ProjectSnapshotTool::Execute(), yaze::cli::agent::tools::ProjectRestoreTool::Execute(), yaze::cli::ResourceContextBuilder::ExportToJson(), yaze::cli::ResourceContextBuilder::ExtractDungeonLabels(), yaze::cli::ResourceContextBuilder::ExtractEntranceLabels(), yaze::cli::ResourceContextBuilder::ExtractOverworldLabels(), yaze::cli::ResourceContextBuilder::ExtractRoomLabels(), yaze::cli::ResourceContextBuilder::ExtractSpriteLabels(), yaze::rom::HyruleMagicValidator::FixChecksum(), yaze::net::CollaborationService::GenerateDiff(), yaze::cli::Tile16ProposalGenerator::GenerateDiff(), yaze::net::RomVersionManager::GetCurrentHash(), yaze::cli::ResourceContextBuilder::GetLabels(), yaze::zelda3::RoomLayout::GetLayoutAddress(), yaze::editor::DungeonObjectSelector::GetOrCreatePreview(), yaze::editor::DungeonEditorV2::GetRomStatus(), yaze::editor::OverworldEditor::GetRomStatus(), yaze::editor::GetRomStatusMessage(), yaze::cli::agent::HandleCommitCommand(), yaze::cli::agent::HandleDiffCommand(), yaze::cli::agent::ConversationalAgentService::HandleExternalResponse(), yaze::cli::HandleGfxExportLegacy(), yaze::cli::HandleGfxImportLegacy(), yaze::cli::message::HandleMessageListCommand(), yaze::cli::message::HandleMessageReadCommand(), yaze::cli::message::HandleMessageSearchCommand(), yaze::cli::message::HandleMessageStatsCommand(), yaze::cli::HandleOverworldDescribeMapLegacy(), yaze::cli::HandleOverworldFindTileLegacy(), yaze::cli::HandleOverworldGetTileLegacy(), yaze::cli::HandleOverworldListWarpsLegacy(), yaze::cli::HandleOverworldSetTileLegacy(), yaze::cli::HandlePaletteExportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::cli::agent::HandleRevertCommand(), yaze::rom::HyruleMagicValidator::HasBank00Erasure(), yaze::net::CollaborationService::HostSession(), yaze::editor::LinkSpritePanel::ImportZspr(), yaze::emu::render::EmulatorRenderService::Initialize(), yaze::cli::resources::CommandContext::Initialize(), yaze::editor::ScreenEditor::Initialize(), yaze::editor::PaletteEditor::Initialize(), yaze::editor::SpriteEditor::Initialize(), yaze::net::CollaborationService::Initialize(), yaze::editor::DungeonEditorV2::Initialize(), yaze::rom::HyruleMagicValidator::IsParallelWorlds(), yaze::editor::DungeonEditorV2::IsRomLoaded(), yaze::editor::OverworldEditor::IsRomLoaded(), yaze::editor::RomFileManager::IsRomLoaded(), yaze::editor::IsRomReadyForEditing(), yaze::net::CollaborationService::JoinSession(), yaze::editor::DungeonEditorV2::Load(), yaze::editor::OverworldEditor::Load(), yaze::editor::DungeonRoomLoader::LoadAllRooms(), yaze::editor::DungeonRoomLoader::LoadAndRenderRoomGraphics(), yaze::zelda3::Room::LoadAnimatedGraphics(), yaze::zelda3::music::MusicBank::LoadFromRom(), yaze::zelda3::ObjectDimensionTable::LoadFromRom(), yaze::zelda3::Room::LoadLayoutTilesToBuffer(), yaze::editor::LinkSpritePanel::LoadLinkSheets(), yaze::zelda3::Room::LoadPotItems(), yaze::cli::agent::anonymous_namespace{conversation_test.cc}::LoadRomForAgent(), yaze::editor::DungeonRoomLoader::LoadRoom(), yaze::editor::DungeonRoomLoader::LoadRoomEntrances(), yaze::zelda3::LoadRoomHeaderFromRom(), yaze::editor::PolyhedralEditorPanel::LoadShapes(), yaze::editor::SpriteEditor::LoadSpritePalettes(), main(), yaze::editor::RomLoadOptionsDialog::Open(), yaze::editor::ObjectEditorPanel::OpenStaticObjectEditor(), yaze::cli::Tile16ProposalGenerator::ParseReplaceTileCommand(), yaze::cli::Tile16ProposalGenerator::ParseSetAreaCommand(), yaze::cli::Tile16ProposalGenerator::ParseSetTileCommand(), yaze::zelda3::music::SpcParser::ParseSong(), yaze::zelda3::music::SpcParser::ParseTrackInternal(), yaze::zelda3::music::SpcParser::ReadSongPointerTable(), yaze::test::TestManager::RefreshCurrentRom(), yaze::editor::DungeonRoomLoader::ReloadAllRoomGraphics(), yaze::gui::DungeonObjectEmulatorPreview::Render(), yaze::cli::HexViewerComponent::Render(), yaze::editor::DungeonObjectInteraction::RenderGhostPreviewBitmap(), yaze::zelda3::Room::RenderObjectsToBackground(), yaze::editor::RequireRomLoaded(), yaze::cli::agent::tools::ProjectManager::RestoreSnapshot(), yaze::net::RomVersionManager::RestoreSnapshot(), yaze::emu::Emulator::Run(), yaze::test::IntegratedTestSuite::RunRomBasicTest(), yaze::test::E2ETestSuite::RunTests(), yaze::test::RomDependentTestSuite::RunTests(), yaze::test::ZSCustomOverworldTestSuite::RunTests(), yaze::editor::DungeonEditorV2::Save(), yaze::editor::GraphicsEditor::Save(), yaze::editor::PaletteEditor::Save(), yaze::zelda3::TitleScreen::Save(), yaze::editor::MessageEditor::SaveExpandedMessages(), yaze::zelda3::music::MusicBank::SaveToRom(), yaze::cli::agent::ConversationalAgentService::SendMessage(), yaze::test::TestManager::SetCurrentRom(), yaze::editor::DungeonEditorV2::SetRom(), yaze::net::CollaborationService::SubmitChangesAsProposal(), yaze::test::TestManager::TestRomDataIntegrity(), yaze::test::TestManager::TestRomSaveLoad(), yaze::test::TestManager::TestRomWithCopy(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender(), yaze::cli::UnifiedLayout::UnifiedLayout(), yaze::editor::LinkSpritePanel::Update(), yaze::editor::PaletteControlsPanel::Update(), yaze::editor::PolyhedralEditorPanel::Update(), yaze::editor::OverworldEditor::Update(), yaze::editor::OverworldEditor::UpdateGfxGroupEditor(), and yaze::net::RomVersionManager::ValidateRomIntegrity().
|
inline |
Definition at line 129 of file rom.h.
References dirty_.
Referenced by yaze::editor::ProjectManagementPanel::DrawRomManagement(), yaze::editor::StatusBar::DrawRomSegment(), yaze::test::TestManager::DrawTestDashboard(), yaze::test::TestManager::RefreshCurrentRom(), set_dirty(), and yaze::test::TestManager::ShowRomComparisonResults().
Definition at line 130 of file rom.h.
References dirty(), and dirty_.
Referenced by yaze::editor::Tile16Editor::CommitAllChanges(), yaze::editor::OverworldEditor::DrawEntityEditorPopups(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::OverworldEntityInteraction::HandleDragDrop(), yaze::editor::OverworldEditor::ProcessPendingEntityInsertion(), yaze::editor::PaletteEditor::Save(), yaze::gfx::PaletteManager::SaveGroup(), and yaze::editor::Tile16Editor::SaveTile16ToROM().

|
inline |
Definition at line 133 of file rom.h.
References title_.
Referenced by yaze::cli::tui::ChatTUI::ChatTUI(), yaze::cli::EnhancedStatusPanel::CollectRomInfo(), yaze::cli::UnifiedLayout::CreateChatPanel(), yaze::cli::UnifiedLayout::CreateStatusPanel(), yaze::test::TestManager::CreateTestRomCopy(), yaze::test::E2ETestSuite::DrawConfiguration(), yaze::test::RomDependentTestSuite::DrawConfiguration(), yaze::test::ZSCustomOverworldTestSuite::DrawConfiguration(), yaze::editor::ProjectManagementPanel::DrawRomManagement(), yaze::test::TestManager::DrawTestDashboard(), yaze::cli::handlers::RomInfoCommandHandler::Execute(), yaze::cli::handlers::RomValidateCommandHandler::Execute(), yaze::cli::agent::tools::RomChangesTool::Execute(), yaze::editor::RomSession::GetDisplayName(), yaze::editor::DungeonEditorV2::GetRomStatus(), yaze::editor::OverworldEditor::GetRomStatus(), yaze::editor::GetRomStatusMessage(), yaze::cli::agent::HandleTestConversationCommand(), yaze::editor::IsRomReadyForEditing(), yaze::editor::RomFileManager::LoadRomFromFile(), yaze::cli::EnhancedChatComponent::ProcessMessage(), yaze::test::TestManager::RefreshCurrentRom(), yaze::test::RomDependentTestSuite::RunComprehensiveSaveTest(), yaze::test::IntegratedTestSuite::RunRomBasicTest(), yaze::test::RomDependentTestSuite::RunRomHeaderValidationTest(), yaze::test::RomDependentTestSuite::RunTests(), yaze::test::RomDependentTestSuite::RunTile16EditorTest(), yaze::test::TestManager::SetCurrentRom(), yaze::cli::tui::ChatTUI::SetRomContext(), yaze::cli::UnifiedLayout::SetRomContext(), yaze::test::TestManager::TestRomDataIntegrity(), yaze::test::TestManager::TestRomSaveLoad(), yaze::cli::UnifiedLayout::UnifiedLayout(), yaze::cli::agent::tools::RomValidateTool::ValidateHeader(), yaze::editor::RomFileManager::ValidateRom(), and yaze::cli::handlers::ToolsExtractGoldenCommandHandler::WriteBasicROMInfo().
|
inline |
Definition at line 134 of file rom.h.
References size_.
Referenced by yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ApplyTailExpansion(), yaze::emu::render::SaveStateManager::CalculateRomChecksum(), yaze::zelda3::CalculateRoomSize(), yaze::cli::tui::ChatTUI::ChatTUI(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::CheckCommonSpriteIssues(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckCorruptionHeuristics(), yaze::cli::agent::tools::PatchCheckTool::CheckFreeSpace(), yaze::cli::agent::tools::PatchCheckTool::CheckHooks(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::CheckSheetIntegrity(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::CheckTile16Corruption(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckZScreamHeuristics(), yaze::cli::EnhancedStatusPanel::CollectRomInfo(), yaze::cli::agent::tools::ProjectToolUtils::ComputeRomChecksum(), yaze::net::RomVersionManager::ComputeRomHash(), yaze::cli::UnifiedLayout::CreateChatPanel(), yaze::cli::UnifiedLayout::CreateHexViewerPanel(), yaze::net::RomVersionManager::CreateSnapshot(), yaze::editor::GraphicsEditor::DecompressImportData(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::net::RomVersionManager::DetectCorruption(), yaze::zelda3::music::MusicBank::DetectExpandedMusicPatch(), yaze::zelda3::DiggableTilesPatch::DetectZSDiggingHooks(), yaze::test::E2ETestSuite::DrawConfiguration(), yaze::test::RomDependentTestSuite::DrawConfiguration(), yaze::zelda3::ObjectDrawer::DrawDoor(), yaze::editor::GraphicsEditor::DrawMemoryEditor(), yaze::editor::ProjectManagementPanel::DrawRomManagement(), yaze::cli::agent::EnhancedTUI::DrawSidebar(), yaze::test::TestManager::DrawTestDashboard(), yaze::editor::GraphicsEditor::DrawTilemapImport(), yaze::zelda3::RoomObject::EnsureTilesLoaded(), yaze::cli::handlers::HexReadCommandHandler::Execute(), yaze::cli::handlers::HexWriteCommandHandler::Execute(), yaze::cli::handlers::HexSearchCommandHandler::Execute(), yaze::cli::handlers::RomInfoCommandHandler::Execute(), yaze::cli::handlers::RomValidateCommandHandler::Execute(), yaze::cli::handlers::RomDiffCommandHandler::Execute(), yaze::cli::handlers::RomGenerateGoldenCommandHandler::Execute(), yaze::cli::GraphicsDoctorCommandHandler::Execute(), yaze::cli::HexDumpCommandHandler::Execute(), yaze::cli::HexCompareCommandHandler::Execute(), yaze::cli::HexAnnotateCommandHandler::Execute(), yaze::cli::RomDoctorCommandHandler::Execute(), yaze::cli::handlers::ToolsExtractValuesCommandHandler::Execute(), yaze::cli::agent::tools::ProjectStatusTool::Execute(), yaze::cli::agent::tools::RomChangesTool::Execute(), Expand(), yaze::rom::HyruleMagicValidator::FixChecksum(), yaze::net::RomVersionManager::GetCurrentHash(), yaze::zelda3::RoomLayout::GetLayoutAddress(), yaze::zelda3::music::SpcParser::GetSpcData(), yaze::zelda3::OverworldVersionHelper::GetVersion(), yaze::cli::agent::HandleAcceptCommand(), yaze::rom::HyruleMagicValidator::HasBank00Erasure(), yaze::zelda3::Overworld::HasExpandedPointerTables(), yaze::emu::render::EmulatorRenderService::InjectRoomContext(), yaze::rom::HyruleMagicValidator::IsParallelWorlds(), yaze::Load2BppGraphics(), yaze::zelda3::Load2BppGraphics(), yaze::LoadAllGraphicsData(), yaze::zelda3::music::MusicBank::LoadExpandedSongTable(), yaze::LoadFontGraphics(), yaze::zelda3::LoadGameData(), yaze::zelda3::LoadGraphics(), yaze::zelda3::music::MusicBank::LoadInstruments(), yaze::zelda3::RoomLayout::LoadLayout(), yaze::zelda3::LoadMetadata(), yaze::zelda3::Room::LoadObjects(), yaze::zelda3::LoadRoomHeaderFromRom(), yaze::zelda3::music::MusicBank::LoadSamples(), yaze::zelda3::OverworldMap::LoadVanillaOverlayData(), yaze::emu::render::EmulatorRenderService::LookupHandlerAddress(), main(), yaze::zelda3::Room::ParseObjectsFromLocation(), yaze::zelda3::ObjectParser::ParseSubtype1(), yaze::zelda3::ObjectParser::ParseSubtype2(), yaze::zelda3::ObjectParser::ParseSubtype3(), yaze::cli::EnhancedChatComponent::ProcessMessage(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::ReadRomHeader(), yaze::zelda3::ObjectParser::ReadTileData(), yaze::test::TestManager::RefreshCurrentRom(), yaze::cli::HexViewerComponent::Render(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::RepairTile16Region(), yaze::net::RomVersionManager::RestoreSnapshot(), yaze::test::IntegratedTestSuite::RunRomBasicTest(), yaze::test::RomDependentTestSuite::RunRomHeaderValidationTest(), yaze::test::E2ETestSuite::RunRomLoadSaveTest(), yaze::test::RomDependentTestSuite::RunTests(), yaze::editor::GraphicsEditor::Save(), yaze::SaveAllGraphicsData(), yaze::editor::MessageEditor::SaveExpandedMessages(), yaze::zelda3::Room::SaveObjects(), yaze::zelda3::music::MusicBank::SaveSongTable(), yaze::zelda3::Room::SaveSprites(), yaze::cli::tui::ChatTUI::SetRomContext(), yaze::test::TestManager::ShowRomComparisonResults(), yaze::zelda3::music::SpcParser::SpcAddressToRomOffset(), yaze::test::TestManager::TestRomDataIntegrity(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender(), yaze::editor::MemoryEditor::Update(), yaze::editor::music::MusicPlayer::UploadSoundBankFromRom(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateBlocksets(), yaze::cli::agent::tools::RomValidateTool::ValidateChecksum(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateCompression(), yaze::gfx::lc_lz2::ValidateCompressionResult(), yaze::gfx::lc_lz2::ValidateCompressionResultV3(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::ValidateExpandedTables(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateGraphicsPointerTable(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ValidateMapPointers(), yaze::editor::RomFileManager::ValidateRom(), yaze::net::RomVersionManager::ValidateRomIntegrity(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateRoomSprites(), yaze::cli::agent::tools::RomValidateTool::ValidateSize(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritePointerTable(), yaze::cli::agent::tools::DataValidateTool::ValidateSprites(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritesets(), yaze::cli::anonymous_namespace{overworld_validate_commands.cc}::ValidateTile16Region(), and yaze::cli::handlers::ToolsExtractGoldenCommandHandler::WriteBasicROMInfo().
|
inline |
Definition at line 135 of file rom.h.
References rom_data_.
Referenced by yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ApplyTailExpansion(), yaze::editor::BuildDictionaryEntries(), yaze::emu::render::SaveStateManager::CalculateRomChecksum(), yaze::zelda3::CalculateRoomSize(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckCorruptionHeuristics(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::CheckTile16Corruption(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckZScreamHeuristics(), yaze::cli::agent::tools::ProjectToolUtils::ComputeRomChecksum(), yaze::net::RomVersionManager::ComputeRomHash(), yaze::net::RomVersionManager::CreateSnapshot(), yaze::editor::GraphicsEditor::DecompressImportData(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::net::RomVersionManager::DetectCorruption(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::DetectRomFeatures(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::DetectRomFeaturesLocal(), yaze::zelda3::DiggableTilesPatch::DetectZSDiggingHooks(), yaze::zelda3::ObjectDrawer::DrawDoor(), yaze::test::TestManager::DrawTestDashboard(), yaze::editor::GraphicsEditor::DrawTilemapImport(), yaze::zelda3::RoomObject::EnsureTilesLoaded(), yaze::cli::MessageDoctorCommandHandler::Execute(), yaze::cli::handlers::HexReadCommandHandler::Execute(), yaze::cli::handlers::HexSearchCommandHandler::Execute(), yaze::cli::RomDoctorCommandHandler::Execute(), yaze::zelda3::OverworldVersionHelper::GetAsmVersion(), yaze::net::RomVersionManager::GetCurrentHash(), yaze::zelda3::music::SpcParser::GetSpcData(), yaze::zelda3::OverworldVersionHelper::GetVersion(), yaze::rom::HyruleMagicValidator::HasBank00Erasure(), yaze::zelda3::Overworld::HasExpandedPointerTables(), yaze::editor::MessageEditor::Initialize(), yaze::emu::render::EmulatorRenderService::InjectRoomContext(), yaze::Load2BppGraphics(), yaze::zelda3::Load2BppGraphics(), yaze::LoadAllGraphicsData(), yaze::zelda3::LoadDungeonMaps(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::LoadEntrances(), yaze::zelda3::LoadExits(), yaze::LoadFontGraphics(), LoadFromData(), LoadFromData(), LoadFromData(), yaze::zelda3::LoadGraphics(), yaze::zelda3::RoomLayout::LoadLayout(), yaze::cli::message::anonymous_namespace{message.cc}::LoadMessages(), yaze::zelda3::LoadMetadata(), yaze::zelda3::LoadRoomHeaderFromRom(), yaze::zelda3::music::MusicBank::LoadSamples(), yaze::emu::render::EmulatorRenderService::LookupHandlerAddress(), yaze::zelda3::ObjectParser::ParseSubtype1(), yaze::zelda3::ObjectParser::ParseSubtype2(), yaze::zelda3::ObjectParser::ParseSubtype3(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::ReadRomHeader(), yaze::zelda3::ObjectParser::ReadTileData(), yaze::zelda3::Room::RenderObjectsToBackground(), yaze::zelda3::RoomEntrance::RoomEntrance(), yaze::editor::GraphicsEditor::Save(), yaze::SaveAllGraphicsData(), yaze::zelda3::SaveDungeonMapTile16(), yaze::zelda3::music::SpcParser::SpcAddressToRomOffset(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender(), yaze::editor::music::MusicPlayer::UploadSoundBankFromRom(), yaze::gfx::lc_lz2::ValidateCompressionResult(), yaze::gfx::lc_lz2::ValidateCompressionResultV3(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::ValidateExpandedTables(), yaze::cli::anonymous_namespace{overworld_doctor_commands.cc}::ValidateMapPointers(), yaze::cli::anonymous_namespace{overworld_validate_commands.cc}::ValidateTile16Region(), and WriteVector().
|
inline |
Definition at line 136 of file rom.h.
References rom_data_.
Referenced by yaze::editor::GraphicsEditor::DrawMemoryEditor(), yaze::editor::GraphicsEditor::DrawPaletteControls(), yaze::zelda3::music::Tracker::GetSpcAddr(), yaze::editor::LoadExpandedMessages(), yaze::net::RomVersionManager::RestoreSnapshot(), yaze::editor::MessageEditor::SaveExpandedMessages(), and yaze::zelda3::music::Tracker::WriteSpcData().
|
inline |
Definition at line 137 of file rom.h.
References rom_data_.
Referenced by yaze::SaveAllGraphicsData(), yaze::gfx::lc_lz2::ValidateCompressionResult(), and yaze::gfx::lc_lz2::ValidateCompressionResultV3().
|
inline |
Definition at line 139 of file rom.h.
References rom_data_.
Referenced by yaze::editor::ProposalDrawer::AcceptProposal(), yaze::editor::AssemblyEditor::ApplyPatchToRom(), yaze::editor::OverworldEditor::ApplyZSCustomOverworldASM(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::CheckCommonSpriteIssues(), yaze::cli::anonymous_namespace{rom_doctor_commands.cc}::CheckParallelWorldsHeuristics(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::CheckSheetIntegrity(), yaze::cli::EnhancedStatusPanel::CollectRomInfo(), yaze::cli::UnifiedLayout::CreateHexViewerPanel(), yaze::test::TestManager::CreateTestRomCopy(), yaze::gui::DungeonObjectEmulatorPreview::EnsureInitialized(), yaze::emu::Emulator::EnsureInitialized(), yaze::cli::handlers::ProjectBuildCommandHandler::Execute(), yaze::cli::handlers::RomDiffCommandHandler::Execute(), yaze::cli::handlers::RomGenerateGoldenCommandHandler::Execute(), yaze::cli::GraphicsDoctorCommandHandler::Execute(), yaze::cli::HexDumpCommandHandler::Execute(), yaze::cli::HexCompareCommandHandler::Execute(), yaze::cli::HexAnnotateCommandHandler::Execute(), yaze::cli::RomCompareCommandHandler::Execute(), yaze::cli::agent::tools::RomDiffTool::Execute(), yaze::cli::handlers::ToolsHarnessStateCommandHandler::GenerateHarnessState(), yaze::cli::agent::HandleAcceptCommand(), yaze::emu::render::EmulatorRenderService::Initialize(), LoadFromData(), LoadFromFile(), LoadFromFile(), LoadFromFile(), LoadGfxGroups(), yaze::zelda3::LoadPalettes(), LoadZelda3(), main(), ReadByte(), ReadByteVector(), ReadHelper(), ReadLong(), ReadTile16(), ReadTransaction(), ReadWord(), yaze::cli::HexViewerComponent::Render(), yaze::emu::Emulator::Run(), yaze::editor::MessageEditor::Save(), SaveGfxGroups(), SavePalette(), SaveToFile(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateBlocksets(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateCompression(), yaze::cli::anonymous_namespace{graphics_doctor_commands.cc}::ValidateGraphicsPointerTable(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateRoomSprites(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritePointerTable(), yaze::cli::anonymous_namespace{sprite_doctor_commands.cc}::ValidateSpritesets(), WriteByte(), WriteColor(), WriteLong(), WriteTile16(), WriteVector(), and WriteWord().
|
inline |
Definition at line 140 of file rom.h.
References rom_data_.
Referenced by yaze::core::PatchManager::ApplyEnabledPatches().
|
inline |
Definition at line 141 of file rom.h.
References filename_.
Referenced by yaze::editor::RomFileManager::CreateBackup(), yaze::cli::RomSandboxManager::CreateSandbox(), yaze::test::RomDependentTestSuite::DrawConfiguration(), yaze::test::TestManager::DrawTestDashboard(), yaze::cli::OverworldDoctorCommandHandler::Execute(), yaze::cli::RomCompareCommandHandler::Execute(), yaze::cli::RomDoctorCommandHandler::Execute(), yaze::editor::RomFileManager::GetRomFilename(), yaze::cli::agent::HandleAcceptCommand(), yaze::cli::HandleGfxImportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::cli::agent::HandleRevertCommand(), LoadFromFile(), LoadFromFile(), LoadFromFile(), yaze::editor::RomLoadOptionsDialog::Open(), yaze::editor::RomSession::RomSession(), SaveToFile(), and yaze::editor::MemoryEditor::Update().
|
inline |
Definition at line 142 of file rom.h.
References filename_.
Referenced by yaze::editor::MessageEditor::SaveExpandedMessages().
|
inline |
Definition at line 143 of file rom.h.
References short_name_.
Referenced by yaze::editor::StatusBar::DrawRomSegment(), and yaze::editor::UICoordinator::DrawSessionButton().
|
inline |
Definition at line 146 of file rom.h.
References resource_label_manager_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::PaletteEditor::DrawPaletteGroup(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), yaze::editor::SpriteEditor::DrawSpritesList(), yaze::cli::resources::CommandContext::EnsureLabelsLoaded(), yaze::cli::ResourceContextBuilder::ExportToJson(), yaze::cli::ResourceContextBuilder::ExtractDungeonLabels(), yaze::cli::ResourceContextBuilder::ExtractEntranceLabels(), yaze::cli::ResourceContextBuilder::ExtractOverworldLabels(), yaze::cli::ResourceContextBuilder::ExtractRoomLabels(), yaze::cli::ResourceContextBuilder::ExtractSpriteLabels(), yaze::cli::ResourceContextBuilder::GetLabels(), yaze::cli::agent::HandleTestConversationCommand(), yaze::cli::InitializeMockRom(), yaze::editor::PaletteEditor::Load(), yaze::cli::agent::anonymous_namespace{general_commands.cc}::TryLoadProjectAndLabels(), and yaze::editor::GfxGroupEditor::Update().
Definition at line 700 of file rom_old.cc.
References yaze::RomLoadOptions::AppDefaults(), filename(), LoadFromFile(), yaze::RomLoadOptions::RawDataOnly(), and vector().
| absl::Status yaze::Rom::LoadFromFile | ( | const std::string & | filename, |
| const RomLoadOptions & | options ) |
Definition at line 705 of file rom_old.cc.
References filename(), filename_, yaze::RomLoadOptions::load_resource_labels, yaze::RomLoadOptions::load_zelda3_content, yaze::project::ResourceLabelManager::LoadLabels(), LoadZelda3(), resource_label_manager_, RETURN_IF_ERROR, rom_data_, short_name_, size_, yaze::RomLoadOptions::strip_header, and vector().

Definition at line 825 of file rom_old.cc.
References yaze::RomLoadOptions::AppDefaults(), data(), LoadFromData(), yaze::RomLoadOptions::RawDataOnly(), and vector().
| absl::Status yaze::Rom::LoadFromData | ( | const std::vector< uint8_t > & | data, |
| const RomLoadOptions & | options ) |
Definition at line 830 of file rom_old.cc.
References data(), yaze::RomLoadOptions::load_zelda3_content, LoadZelda3(), RETURN_IF_ERROR, rom_data_, size_, and yaze::RomLoadOptions::strip_header.

| absl::Status yaze::Rom::LoadZelda3 | ( | ) |
Definition at line 851 of file rom_old.cc.
References yaze::RomLoadOptions::AppDefaults(), and LoadZelda3().
Referenced by InitializeForTesting(), LoadFromData(), LoadFromFile(), and LoadZelda3().

| absl::Status yaze::Rom::LoadZelda3 | ( | const RomLoadOptions & | options | ) |
Definition at line 855 of file rom_old.cc.
References yaze::gfx::PaletteGroupMap::clear(), yaze::RomLoadOptions::expand_to_full_image, yaze::gfx::LoadAllPalettes(), LoadGfxGroups(), LOG_INFO, main_blockset_ids, palette_groups_, paletteset_ids, yaze::RomLoadOptions::populate_gfx_groups, yaze::RomLoadOptions::populate_metadata, yaze::RomLoadOptions::populate_palettes, RETURN_IF_ERROR, rom_data_, room_blockset_ids, size_, spriteset_ids, yaze::RomLoadOptions::strip_header, title_, vector(), and version_.

| absl::Status yaze::Rom::LoadGfxGroups | ( | ) |
Definition at line 956 of file rom_old.cc.
References yaze::kEntranceGfxGroup, yaze::kGfxGroupsPointer, yaze::kNumMainBlocksets, yaze::kNumPalettesets, yaze::kNumRoomBlocksets, yaze::kNumSpritesets, LOG_WARN, main_blockset_ids, paletteset_ids, ReadWord(), rom_data_, room_blockset_ids, yaze::SnesToPc(), spriteset_ids, vector(), version_, and version_constants().
Referenced by LoadZelda3().

|
inline |
Definition at line 107 of file rom_old.h.
References yaze::RomLoadOptions::AppDefaults(), LoadZelda3(), and RETURN_IF_ERROR.

| absl::Status yaze::Rom::SaveGfxGroups | ( | ) |
Definition at line 1089 of file rom_old.cc.
References ASSIGN_OR_RETURN, zelda3_version_pointers::kDungeonPalettesGroups, yaze::kEntranceGfxGroup, yaze::kGfxGroupsPointer, yaze::kNumMainBlocksets, yaze::kNumPalettesets, yaze::kNumRoomBlocksets, yaze::kNumSpritesets, zelda3_version_pointers::kSpriteBlocksetPointer, main_blockset_ids, paletteset_ids, ReadWord(), rom_data_, room_blockset_ids, yaze::SnesToPc(), spriteset_ids, vector(), and version_constants().

| absl::Status yaze::Rom::SaveToFile | ( | const SaveSettings & | settings | ) |
| absl::Status yaze::Rom::SavePalette | ( | int | index, |
| const std::string & | group_name, | ||
| gfx::SnesPalette & | palette ) |
Definition at line 1218 of file rom_old.cc.
References yaze::gfx::GetPaletteAddress(), yaze::gfx::SnesColor::is_modified(), RETURN_IF_ERROR, yaze::gfx::SnesColor::set_modified(), yaze::gfx::SnesPalette::size(), vector(), and WriteColor().
| absl::Status yaze::Rom::SaveAllPalettes | ( | ) |
Definition at line 1232 of file rom_old.cc.
References yaze::gfx::PaletteGroupMap::for_each(), palette_groups_, and RETURN_IF_ERROR.

|
inline |
Definition at line 123 of file rom_old.h.
References yaze::gfx::PaletteGroupMap::clear(), palette_groups_, rom_data_, and size_.

| absl::StatusOr< std::vector< uint8_t > > yaze::Rom::ReadByteVector | ( | uint32_t | offset, |
| uint32_t | length ) const |
| absl::StatusOr< gfx::Tile16 > yaze::Rom::ReadTile16 | ( | uint32_t | tile16_id | ) |
Definition at line 1290 of file rom_old.cc.
References ASSIGN_OR_RETURN, and yaze::kTile16Ptr.
| absl::Status yaze::Rom::WriteTile16 | ( | int | tile16_id, |
| const gfx::Tile16 & | tile ) |
Definition at line 1308 of file rom_old.cc.
References yaze::kTile16Ptr, RETURN_IF_ERROR, yaze::gfx::Tile16::tile0_, yaze::gfx::Tile16::tile1_, yaze::gfx::Tile16::tile2_, and yaze::gfx::Tile16::tile3_.
| absl::Status yaze::Rom::WriteColor | ( | uint32_t | address, |
| const gfx::SnesColor & | color ) |
|
inline |
Definition at line 145 of file rom_old.h.
References WriteHelper().

Definition at line 153 of file rom_old.h.
References ReadTransaction(), and vector().

|
inlinevirtual |
Definition at line 172 of file rom_old.h.
References WriteByte(), WriteColor(), WriteShort(), and WriteVector().

Definition at line 194 of file rom_old.h.
References ASSIGN_OR_RETURN, ReadByte(), ReadByteVector(), ReadWord(), and vector().

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 228 of file rom_old.h.
References short_name_.
Definition at line 229 of file rom_old.h.
References graphics_buffer_.
|
inline |
Definition at line 230 of file rom_old.h.
References graphics_buffer_.
Referenced by yaze::LoadAllGraphicsData().
Definition at line 231 of file rom_old.h.
References palette_groups_.
Referenced by yaze::LoadAllGraphicsData(), and yaze::LoadLinkGraphics().
|
inline |
Definition at line 232 of file rom_old.h.
References palette_groups_.
Definition at line 233 of file rom_old.h.
References yaze::gfx::PaletteGroupMap::dungeon_main, and palette_groups_.
Definition at line 234 of file rom_old.h.
References yaze::gfx::PaletteGroupMap::dungeon_main, yaze::gfx::PaletteGroup::mutable_palette(), and palette_groups_.

|
inline |
Definition at line 238 of file rom_old.h.
References resource_label_manager_.
|
inline |
Definition at line 241 of file rom_old.h.
References version_.
Referenced by yaze::Load2BppGraphics(), yaze::LoadAllGraphicsData(), LoadGfxGroups(), yaze::SaveAllGraphicsData(), and SaveGfxGroups().
|
inline |
Definition at line 250 of file rom_old.h.
References diagnostics_.
|
inline |
Definition at line 251 of file rom_old.h.
References diagnostics_.
Referenced by yaze::LoadAllGraphicsData().
Definition at line 152 of file rom.h.
Referenced by Close(), Expand(), LoadFromData(), LoadFromData(), LoadFromFile(), LoadFromFile(), LoadZelda3(), operator[](), and size().
Definition at line 155 of file rom.h.
Referenced by LoadZelda3(), and title().
|
private |
Definition at line 158 of file rom.h.
Referenced by filename(), LoadFromFile(), LoadFromFile(), SaveToFile(), and set_filename().
|
private |
Definition at line 161 of file rom.h.
Referenced by LoadFromFile(), LoadFromFile(), and short_name().
|
private |
Definition at line 164 of file rom.h.
Referenced by begin(), Close(), data(), end(), Expand(), is_loaded(), LoadFromData(), LoadFromData(), LoadFromFile(), LoadFromFile(), LoadGfxGroups(), LoadZelda3(), mutable_data(), mutable_vector(), operator[](), ReadByte(), ReadByteVector(), ReadLong(), ReadWord(), SaveGfxGroups(), SaveToFile(), vector(), WriteByte(), WriteLong(), WriteVector(), and WriteWord().
|
private |
Definition at line 167 of file rom.h.
Referenced by LoadFromFile(), LoadFromFile(), and resource_label().
Definition at line 170 of file rom.h.
Referenced by ClearDirty(), dirty(), SaveToFile(), set_dirty(), WriteByte(), WriteLong(), WriteVector(), and WriteWord().
| std::array<std::array<uint8_t, 8>, kNumMainBlocksets> yaze::Rom::main_blockset_ids |
Definition at line 245 of file rom_old.h.
Referenced by LoadGfxGroups(), LoadZelda3(), and SaveGfxGroups().
| std::array<std::array<uint8_t, 4>, kNumRoomBlocksets> yaze::Rom::room_blockset_ids |
Definition at line 246 of file rom_old.h.
Referenced by LoadGfxGroups(), LoadZelda3(), and SaveGfxGroups().
| std::array<std::array<uint8_t, 4>, kNumSpritesets> yaze::Rom::spriteset_ids |
Definition at line 247 of file rom_old.h.
Referenced by LoadGfxGroups(), LoadZelda3(), and SaveGfxGroups().
| std::array<std::array<uint8_t, 4>, kNumPalettesets> yaze::Rom::paletteset_ids |
Definition at line 248 of file rom_old.h.
Referenced by LoadGfxGroups(), LoadZelda3(), and SaveGfxGroups().
|
private |
Definition at line 270 of file rom_old.h.
Referenced by graphics_buffer(), and mutable_graphics_buffer().
|
private |
Definition at line 273 of file rom_old.h.
Referenced by GetDiagnostics(), and GetMutableDiagnostics().
|
private |
Definition at line 279 of file rom_old.h.
Referenced by Close(), dungeon_palette(), LoadZelda3(), mutable_dungeon_palette(), mutable_palette_group(), palette_group(), and SaveAllPalettes().
|
private |
Definition at line 282 of file rom_old.h.
Referenced by LoadGfxGroups(), LoadZelda3(), and version_constants().