mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Simplify std::copy
with fmt::join
This commit is contained in:
parent
519da8297c
commit
4c064de235
@ -10,7 +10,6 @@
|
|||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
@ -18,6 +17,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
#include <fmt/ranges.h>
|
||||||
#include <pugixml.hpp>
|
#include <pugixml.hpp>
|
||||||
|
|
||||||
#include "Common/BitUtils.h"
|
#include "Common/BitUtils.h"
|
||||||
@ -643,10 +643,7 @@ std::string GameFile::GetNetPlayName(const Core::TitleDatabase& title_database)
|
|||||||
}
|
}
|
||||||
if (info.empty())
|
if (info.empty())
|
||||||
return name;
|
return name;
|
||||||
std::ostringstream ss;
|
return fmt::format("{} ({})", name, fmt::join(info, ", "));
|
||||||
std::copy(info.begin(), info.end() - 1, std::ostream_iterator<std::string>(ss, ", "));
|
|
||||||
ss << info.back();
|
|
||||||
return name + " (" + ss.str() + ")";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Common::SHA1::Digest GetHash(u32 value)
|
static Common::SHA1::Digest GetHash(u32 value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user