yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_stream_layout_adapter.h
Go to the documentation of this file.
1#ifndef YAZE_CORE_DUNGEON_STREAM_LAYOUT_ADAPTER_H_
2#define YAZE_CORE_DUNGEON_STREAM_LAYOUT_ADAPTER_H_
3
4#include "absl/status/statusor.h"
7
8namespace yaze::core {
9
10// Converts the manifest's canonical LoROM SNES addresses into the headerless
11// PC offsets consumed by the dungeon stream inventory/allocator. The manifest
12// write strategy is intentionally not represented in the returned layout;
13// callers must enforce that policy before planning writes.
14absl::StatusOr<zelda3::DungeonStreamLayout> ToDungeonStreamAllocatorLayout(
15 DungeonStreamType stream_type, const DungeonStreamLayout& manifest_layout);
16
17} // namespace yaze::core
18
19#endif // YAZE_CORE_DUNGEON_STREAM_LAYOUT_ADAPTER_H_
DungeonStreamType
Dungeon stream kinds with allocator layouts in the hack manifest.
absl::StatusOr< zelda3::DungeonStreamLayout > ToDungeonStreamAllocatorLayout(DungeonStreamType stream_type, const DungeonStreamLayout &manifest_layout)