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 /app/mac | |
| parent | e791ac9a46095e0241181da89c35a7c702982c21 (diff) | |
add span type
Diffstat (limited to 'app/mac')
| -rw-r--r-- | app/mac/scene.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mac/scene.mm b/app/mac/scene.mm index 133fc18..901af64 100644 --- a/app/mac/scene.mm +++ b/app/mac/scene.mm @@ -440,7 +440,7 @@ namespace reopen_dir(); } - auto load(std::string_view const item, nes::u8* buffer, nes::u32 const buffer_size) -> nes::u32 override + auto load(std::string_view const item, nes::span<nes::u8> const buffer) -> nes::u32 override { auto file_path = path_; if (!file_path.push(item)) { std::abort(); } @@ -453,7 +453,7 @@ namespace std::abort(); } - auto const res = read(fd, buffer, buffer_size); + auto const res = read(fd, buffer.get_data(), buffer.get_length()); if (res < 0) { perror("read"); |
