From 0f22ed2ef160eef2da6080782943b22c9539650d Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sun, 2 Feb 2025 22:49:01 +0100 Subject: wip: hacky file browser --- lib/nes/sys/cartridge.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/nes/sys') 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_; } -- cgit v1.3.1