summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/mac/scene.mm4
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");