yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
OverworldGoldenDataExtractor Class Reference

Comprehensive ROM value extraction tool for golden data testing. More...

Public Member Functions

 OverworldGoldenDataExtractor (const std::string &rom_path)
 
absl::Status ExtractAllData (const std::string &output_path)
 

Private Member Functions

void WriteHeader (std::ofstream &out)
 
void WriteFooter (std::ofstream &out)
 
void WriteBasicROMInfo (std::ofstream &out, Rom &rom)
 
void WriteASMVersionInfo (std::ofstream &out, Rom &rom)
 
void WriteOverworldMapsData (std::ofstream &out, Overworld &overworld)
 
void WriteTileData (std::ofstream &out, Overworld &overworld)
 
void WriteEntranceData (std::ofstream &out, Overworld &overworld)
 
void WriteHoleData (std::ofstream &out, Overworld &overworld)
 
void WriteExitData (std::ofstream &out, Overworld &overworld)
 
void WriteItemData (std::ofstream &out, Overworld &overworld)
 
void WriteSpriteData (std::ofstream &out, Overworld &overworld)
 
void WriteMapTilesData (std::ofstream &out, Overworld &overworld)
 
void WritePaletteData (std::ofstream &out, Rom &rom)
 
void WriteMusicData (std::ofstream &out, Rom &rom)
 
void WriteOverlayData (std::ofstream &out, Rom &rom)
 

Private Attributes

std::string rom_path_
 

Detailed Description

Comprehensive ROM value extraction tool for golden data testing.

This tool extracts all overworld-related values from a ROM to create "golden" reference data for before/after edit validation and comprehensive E2E testing. It supports both vanilla and ZSCustomOverworld ROMs.

Definition at line 23 of file overworld_golden_data_extractor.cc.

Constructor & Destructor Documentation

◆ OverworldGoldenDataExtractor()

OverworldGoldenDataExtractor::OverworldGoldenDataExtractor ( const std::string &  rom_path)
inlineexplicit

Definition at line 25 of file overworld_golden_data_extractor.cc.

Member Function Documentation

◆ ExtractAllData()

◆ WriteHeader()

void OverworldGoldenDataExtractor::WriteHeader ( std::ofstream &  out)
inlineprivate

Definition at line 87 of file overworld_golden_data_extractor.cc.

References rom_path_.

Referenced by ExtractAllData().

◆ WriteFooter()

void OverworldGoldenDataExtractor::WriteFooter ( std::ofstream &  out)
inlineprivate

Definition at line 105 of file overworld_golden_data_extractor.cc.

Referenced by ExtractAllData().

◆ WriteBasicROMInfo()

void OverworldGoldenDataExtractor::WriteBasicROMInfo ( std::ofstream &  out,
Rom rom 
)
inlineprivate

Definition at line 111 of file overworld_golden_data_extractor.cc.

References yaze::Rom::ReadWord(), yaze::Rom::size(), and yaze::Rom::title().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteASMVersionInfo()

void OverworldGoldenDataExtractor::WriteASMVersionInfo ( std::ofstream &  out,
Rom rom 
)
inlineprivate

Definition at line 135 of file overworld_golden_data_extractor.cc.

References yaze::Rom::ReadByte().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteOverworldMapsData()

void OverworldGoldenDataExtractor::WriteOverworldMapsData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 198 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::overworld_maps().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteTileData()

void OverworldGoldenDataExtractor::WriteTileData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

◆ WriteEntranceData()

void OverworldGoldenDataExtractor::WriteEntranceData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 281 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::entrances().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteHoleData()

void OverworldGoldenDataExtractor::WriteHoleData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 332 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::holes().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteExitData()

void OverworldGoldenDataExtractor::WriteExitData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 355 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::exits().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteItemData()

void OverworldGoldenDataExtractor::WriteItemData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 378 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::all_items().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteSpriteData()

void OverworldGoldenDataExtractor::WriteSpriteData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 403 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::all_sprites().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteMapTilesData()

void OverworldGoldenDataExtractor::WriteMapTilesData ( std::ofstream &  out,
Overworld overworld 
)
inlineprivate

Definition at line 422 of file overworld_golden_data_extractor.cc.

References yaze::zelda3::Overworld::map_tiles().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WritePaletteData()

void OverworldGoldenDataExtractor::WritePaletteData ( std::ofstream &  out,
Rom rom 
)
inlineprivate

Definition at line 452 of file overworld_golden_data_extractor.cc.

References yaze::Rom::ReadByte().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteMusicData()

void OverworldGoldenDataExtractor::WriteMusicData ( std::ofstream &  out,
Rom rom 
)
inlineprivate

Definition at line 476 of file overworld_golden_data_extractor.cc.

References yaze::Rom::ReadByte().

Referenced by ExtractAllData().

Here is the call graph for this function:

◆ WriteOverlayData()

void OverworldGoldenDataExtractor::WriteOverlayData ( std::ofstream &  out,
Rom rom 
)
inlineprivate

Definition at line 500 of file overworld_golden_data_extractor.cc.

References yaze::Rom::ReadByte().

Referenced by ExtractAllData().

Here is the call graph for this function:

Member Data Documentation

◆ rom_path_

std::string OverworldGoldenDataExtractor::rom_path_
private

Definition at line 524 of file overworld_golden_data_extractor.cc.

Referenced by ExtractAllData(), and WriteHeader().


The documentation for this class was generated from the following file: