diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-02 22:49:01 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-02 22:49:01 +0100 |
| commit | 0f22ed2ef160eef2da6080782943b22c9539650d (patch) | |
| tree | 1b43aada2d0183273e79b4d1db7b1e60dd809855 /lib/nes/sys/cartridge.hh | |
| parent | 4fe67b36e3bbe6ea5505ed7233c245be9374f0ce (diff) | |
wip: hacky file browser
Diffstat (limited to 'lib/nes/sys/cartridge.hh')
| -rw-r--r-- | lib/nes/sys/cartridge.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nes/sys/cartridge.hh b/lib/nes/sys/cartridge.hh index 2cfb114..1934b8d 100644 --- a/lib/nes/sys/cartridge.hh +++ b/lib/nes/sys/cartridge.hh @@ -62,6 +62,8 @@ namespace nes::sys mapper* mapper_{ &mapper::invalid() }; public: + static constexpr auto max_file_size = u32{ max_prg_rom_size + max_chr_rom_size + 512 + header_length }; + explicit cartridge(u8 const* data, u32 length); auto get_status() const -> status { return status_; } |
