diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-05-03 18:45:18 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-09 11:18:46 +0200 |
commit | 8c34959b53b2b72122fe6d2718d5dc060ff56875 (patch) | |
tree | 8e88ecd303fddce25ffc170d297bc76762f115da /Userland/Games | |
parent | 48b000a36cb22550e2c5314bc6c471812c963d0c (diff) | |
download | serenity-8c34959b53b2b72122fe6d2718d5dc060ff56875.zip |
AK: Add the `Input` word to input-only buffered streams
This concerns both `BufferedSeekable` and `BufferedFile`.
Diffstat (limited to 'Userland/Games')
-rw-r--r-- | Userland/Games/MasterWord/WordGame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/MasterWord/WordGame.cpp b/Userland/Games/MasterWord/WordGame.cpp index 3192faae80..0e30a336ca 100644 --- a/Userland/Games/MasterWord/WordGame.cpp +++ b/Userland/Games/MasterWord/WordGame.cpp @@ -178,7 +178,7 @@ void WordGame::read_words() auto try_load_words = [&]() -> ErrorOr<void> { auto response = TRY(Core::File::open("/res/words.txt"sv, Core::File::OpenMode::Read)); - auto words_file = TRY(Core::BufferedFile::create(move(response))); + auto words_file = TRY(Core::InputBufferedFile::create(move(response))); Array<u8, 128> buffer; while (!words_file->is_eof()) { |