diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 19:59:47 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 19:59:47 +0100 |
| commit | 9c45e9c7df1efa5bc1c8e73b6eaef4726b828d3e (patch) | |
| tree | 4be985efa8e697fd6ef5838eec69c32c40c5d4a5 /lib/nes/sys/nes.hh | |
| parent | e791ac9a46095e0241181da89c35a7c702982c21 (diff) | |
add span type
Diffstat (limited to 'lib/nes/sys/nes.hh')
| -rw-r--r-- | lib/nes/sys/nes.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nes/sys/nes.hh b/lib/nes/sys/nes.hh index 5e081b3..187b940 100644 --- a/lib/nes/sys/nes.hh +++ b/lib/nes/sys/nes.hh @@ -5,7 +5,7 @@ #include "nes/sys/controller.hh" #include "nes/sys/cpu.hh" #include "nes/sys/ppu.hh" -#include <string_view> +#include "nes/common/span.hh" namespace nes { @@ -29,7 +29,7 @@ namespace nes::sys status status_{ status::error_invalid_ines_data }; public: - explicit nes(display&, u8 const* rom_data, u32 rom_length); + explicit nes(display&, span<u8 const> rom_data); nes(nes const&) = delete; nes(nes&&) = delete; |
