add user name placeholder (#10109)

* Add user name placeholder

* non-ASCII character support

* fix: Explicitly include <boost/nowide/cstdlib.hpp>
This commit is contained in:
krmz-krmz
2025-07-18 16:43:46 +09:00
committed by GitHub
parent 46af00aa01
commit 11e2c054d0
4 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
cfg = *config_override;
cfg.set_key_value("version", new ConfigOptionString(std::string(SoftFever_VERSION)));
PlaceholderParser::update_timestamp(cfg);
PlaceholderParser::update_user_name(cfg);
this->update_object_placeholders(cfg, default_ext);
if (! filename_base.empty()) {
cfg.set_key_value("input_filename", new ConfigOptionString(filename_base + default_ext));