Initial commit

This commit is contained in:
mxdyeah committed 2026-07-08 01:15:18 +08:00
commit acadc92e68
780 files changed
+468285

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
/*
* tagging.cpp
* -----------
* Purpose: Structure holding a superset of tags for all supported output sample or stream files or types.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "Tagging.h"
#include "../common/version.h"
OPENMPT_NAMESPACE_BEGIN
mpt::ustring GetSampleNameFromTags(const FileTags &tags)
{
mpt::ustring result;
if(tags.artist.empty())
{
result = tags.title;
} else
{
result = MPT_UFORMAT("{} (by {})")(tags.title, tags.artist);
}
return result;
}
OPENMPT_NAMESPACE_END