Skip to content

Commit

Permalink
Print the path directly in allafplay instead of a string copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Dec 30, 2024
1 parent 530aee8 commit 788980d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/allafplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
#include "alstring.h"
#include "common/alhelpers.h"
#include "fmt/core.h"
#include "fmt/std.h"

#include "win_main_utf8.h"

Expand Down Expand Up @@ -568,7 +569,7 @@ auto LoadLAF(const fs::path &fname) -> std::unique_ptr<LafStream>
| (uint32_t{uint8_t(input[2])}<<16u) | (uint32_t{uint8_t(input[3])}<<24u);
}();

fmt::println("Filename: {}", fname.string());
fmt::println("Filename: {}", fname);
fmt::println(" quality: {}", GetQualityName(laf->mQuality));
fmt::println(" mode: {}", GetModeName(laf->mMode));
fmt::println(" track count: {}", laf->mNumTracks);
Expand Down

0 comments on commit 788980d

Please sign in to comment.