mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Everywhere: Rename serenity_main to ladybird_main
No functional changes.
This commit is contained in:
parent
af671f58ed
commit
ead0a2c78a
Notes:
github-actions[bot]
2025-07-08 13:18:23 +00:00
Author: https://github.com/gmta
Commit: ead0a2c78a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5349
34 changed files with 40 additions and 40 deletions
|
@ -16,7 +16,7 @@
|
|||
// The Kernel has problems with large anonymous buffers, so let's limit sample reads ourselves.
|
||||
static constexpr size_t MAX_CHUNK_SIZE = 1 * MiB / 2;
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments args)
|
||||
ErrorOr<int> ladybird_main(Main::Arguments arguments)
|
||||
{
|
||||
StringView path {};
|
||||
int sample_count = -1;
|
||||
|
@ -25,7 +25,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
args_parser.set_general_help("Benchmark audio loading");
|
||||
args_parser.add_positional_argument(path, "Path to audio file", "path");
|
||||
args_parser.add_option(sample_count, "How many samples to load at maximum", "sample-count", 's', "samples");
|
||||
args_parser.parse(args);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
auto maybe_loader = Audio::Loader::create(path);
|
||||
if (maybe_loader.is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue