yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
graphics_save_plan.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_SAVE_PLAN_H
2
#define YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_SAVE_PLAN_H
3
4
#include <cstdint>
5
#include <string>
6
#include <vector>
7
8
#include "absl/status/status.h"
9
#include "
zelda3/gfx_sheet_storage.h
"
10
11
namespace
yaze
{
12
class
Rom;
13
14
namespace
editor {
15
18
struct
GraphicsSavePlanEntry
{
19
uint16_t
sheet_id
= 0;
20
std::string
refusal
;
// empty when the sheet can be saved
21
zelda3::GfxSheetPlacement
placement
=
zelda3::GfxSheetPlacement::kInPlace
;
22
uint32_t
old_pc
= 0;
23
uint32_t
new_pc
= 0;
24
size_t
old_stored_size
= 0;
25
size_t
new_stored_size
= 0;
26
};
27
32
absl::Status
VerifyWrittenSheetPixels
(
33
const
Rom
& rom, uint16_t sheet_id,
34
const
std::vector<uint8_t>& expected_pixels,
35
const
zelda3::GfxSheetPointerTables
& tables);
36
38
std::string
DescribeGraphicsSavePlanEntry
(
const
GraphicsSavePlanEntry
& entry);
39
40
}
// namespace editor
41
}
// namespace yaze
42
43
#endif
// YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_SAVE_PLAN_H
yaze::Rom
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition
rom.h:49
gfx_sheet_storage.h
Locates graphics sheets in the ROM and writes edited sheets back.
yaze::editor::DescribeGraphicsSavePlanEntry
std::string DescribeGraphicsSavePlanEntry(const GraphicsSavePlanEntry &entry)
"Sheet 0x92: in place at 0x0AED16, 1476 -> 1473 bytes".
Definition
graphics_save_plan.cc:49
yaze::editor::VerifyWrittenSheetPixels
absl::Status VerifyWrittenSheetPixels(const Rom &rom, uint16_t sheet_id, const std::vector< uint8_t > &expected_pixels, const zelda3::GfxSheetPointerTables &tables)
Definition
graphics_save_plan.cc:11
yaze::zelda3::GfxSheetPlacement
GfxSheetPlacement
Definition
gfx_sheet_storage.h:117
yaze::zelda3::GfxSheetPlacement::kInPlace
@ kInPlace
yaze
Definition
patch_export_usage.cc:8
yaze::editor::GraphicsSavePlanEntry
Definition
graphics_save_plan.h:18
yaze::editor::GraphicsSavePlanEntry::placement
zelda3::GfxSheetPlacement placement
Definition
graphics_save_plan.h:21
yaze::editor::GraphicsSavePlanEntry::refusal
std::string refusal
Definition
graphics_save_plan.h:20
yaze::editor::GraphicsSavePlanEntry::new_pc
uint32_t new_pc
Definition
graphics_save_plan.h:23
yaze::editor::GraphicsSavePlanEntry::new_stored_size
size_t new_stored_size
Definition
graphics_save_plan.h:25
yaze::editor::GraphicsSavePlanEntry::old_pc
uint32_t old_pc
Definition
graphics_save_plan.h:22
yaze::editor::GraphicsSavePlanEntry::sheet_id
uint16_t sheet_id
Definition
graphics_save_plan.h:19
yaze::editor::GraphicsSavePlanEntry::old_stored_size
size_t old_stored_size
Definition
graphics_save_plan.h:24
yaze::zelda3::GfxSheetPointerTables
PC offsets of the bank, high and low byte pointer tables.
Definition
gfx_sheet_storage.h:45
src
app
editor
graphics
graphics_save_plan.h
Generated by
1.10.0