Skip to content

Commit

Permalink
update: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
pnck committed Apr 27, 2024
1 parent 0b0fd78 commit 4303773
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
/**
changelog
Version 0.4.1
- Fix conversion bugs
- Add progress UI for batch conversion
Version 0.4.0
- Utilities to convert ncm file to mp3/flac in batch
- Utilities to convert/extract ncm file to mp3/flac
Version 0.3.0
- port to support multiple platform / architecture (x64/x86 Windows, Intel/ARM MacOS)
Expand All @@ -27,15 +31,20 @@ Version 0.0.1
**/

#define FALLBACK_VERSION "0.4.0"

#ifdef CURRENT_VERSION
#define VER_STR(X) #X
#define EXTRACT(X) VER_STR(X)
#define NCM_LOADER_VERSION EXTRACT(CURRENT_VERSION)
#else
#define NCM_LOADER_VERSION "0.4.0"
#define NCM_LOADER_VERSION FALLBACK_VERSION
#endif

DECLARE_COMPONENT_VERSION("Ncm Loader", NCM_LOADER_VERSION, "Load and play Netease Music specific file format (ncm) directly.\n");
constexpr auto About = "Load and play Netease Cloud Music specific format (.ncm) files.\n"
"https://github.com/pnck/foo_input_ncm\n";

DECLARE_COMPONENT_VERSION("Ncm Loader", NCM_LOADER_VERSION, About);

// This will prevent users from renaming your component around (important for proper troubleshooter behaviors) or
// loading multiple instances of it.
Expand Down
6 changes: 3 additions & 3 deletions src/ui/context_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@ namespace fb2k_ncm::ui
pfc::string8 msg;
if (all_done) {
msg << "All audio content have been extracted successfully.\n\n";
msg << "Extracted:\n";
msg << succs.size() << " Extracted:\n";
for (auto &s : succs) {
msg << " - " << s.c_str() << "\n";
}
popup_message::g_show(msg, "Extraction Completed", popup_message ::icon_information);
} else {
msg << "Extraction finished but some operations were failed.\n\n";
msg << "Extracted:\n";
msg << succs.size() << " Extracted:\n";
for (auto &s : succs) {
msg << " - " << s.c_str() << "\n";
}
msg << "\nFailed:\n";
msg << "\n" << fails.size() << " Failed:\n";
for (auto &s : fails) {
msg << " - " << s.c_str() << "\n";
}
Expand Down

0 comments on commit 4303773

Please sign in to comment.