chore: optimized code (#11)

* chore: use cout for printing

* chore: removed CMake optimize flags
This commit is contained in:
TaurusXin 2024-02-13 20:58:35 +08:00 committed by GitHub
parent ac1028d6a0
commit ef5835687e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2)
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX)
target_link_options(ncmdump PRIVATE -O2 -municode)
target_link_options(ncmdump PRIVATE -municode)
endif()
endif()

View File

@ -302,7 +302,7 @@ NeteaseCrypt::NeteaseCrypt(std::filesystem::path const& path) {
read(reinterpret_cast<char *>(&n), sizeof(n));
if (n <= 0) {
printf("[Warn] `%s` missing metadata infomation can't fix some infomation!\n", path.c_str());
std::cout << "[Warn] " << path.string() << " missing metadata infomation can't fix some infomation!" << std::endl;
mMetaData = NULL;
} else {
@ -345,6 +345,6 @@ NeteaseCrypt::NeteaseCrypt(std::filesystem::path const& path) {
mImageData = std::string(imageData, n);
} else {
printf("[Warn] `%s` missing album can't fix album image!\n", path.c_str());
std::cout << "[Warn] " << path.string() << " missing album can't fix album image!" << std::endl;
}
}