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/app/file-browser.hh | |
| parent | e791ac9a46095e0241181da89c35a7c702982c21 (diff) | |
add span type
Diffstat (limited to 'lib/nes/app/file-browser.hh')
| -rw-r--r-- | lib/nes/app/file-browser.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nes/app/file-browser.hh b/lib/nes/app/file-browser.hh index 67be794..6ce55aa 100644 --- a/lib/nes/app/file-browser.hh +++ b/lib/nes/app/file-browser.hh @@ -1,6 +1,7 @@ #pragma once #include "nes/common/types.hh" +#include "nes/common/span.hh" namespace nes { @@ -50,7 +51,7 @@ namespace nes::app virtual auto read_next(item* out_item) -> bool = 0; virtual auto navigate_up() -> void = 0; virtual auto navigate(std::string_view) -> void = 0; - virtual auto load(std::string_view, u8* buffer, u32 buffer_size) -> u32 = 0; + virtual auto load(std::string_view, span<u8>) -> u32 = 0; protected: explicit file_browser() = default; |
