coastline 0.0.4
Loading...
Searching...
No Matches
consolesegment.h
Go to the documentation of this file.
1#pragma once
2
8
9#include <filesystem>
10#include <map>
11#include <optional>
12#include <string>
13#include <vector>
14
15#include "common/types.h"
16
17namespace coastline {
18
21public:
29
35 bool Has(u32 address, u32 size) const;
36
41 u8 Byte(u32 address) const;
42
47 u32 Word(u32 address) const;
48
53 s32 Signed(u32 address) const;
54
59 f32 Float(u32 address) const;
60
65 std::string Text(u32 address) const;
66
72
73private:
74 std::vector<u8> m_bytes;
76};
77
78} // namespace coastline
The main segment of a release, as the console loads it.
Definition consolesegment.h:20
std::string Text(u32 address) const
u32 Word(u32 address) const
bool Has(u32 address, u32 size) const
static std::optional< ConsoleSegment > Load(const std::filesystem::path &release)
Read the main segment of a release and the manifest of its cartridge.
std::optional< std::string > AssetName(u32 romStart) const
u8 Byte(u32 address) const
f32 Float(u32 address) const
s32 Signed(u32 address) const
Definition assetimport.h:11
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18