Fix plugin group socket name generation

I'm pretty sure you're supposed to be able to format `size_t` values,
why does this break the stringstream?
This commit is contained in:
Robbert van der Helm
2020-06-05 22:56:52 +02:00
parent 33777d2876
commit 3aab2e9727
2 changed files with 10 additions and 1 deletions
+7
View File
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html). Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fixed plugin group socket name generation. This prevented plugin groups with
the same name from being used simultaneously in multiple Wine prefixes.
## [1.2.0] - 2020-05-29 ## [1.2.0] - 2020-05-29
### Added ### Added
+3 -1
View File
@@ -170,7 +170,9 @@ boost::filesystem::path generate_group_endpoint(
PluginArchitecture architecture) { PluginArchitecture architecture) {
std::ostringstream socket_name; std::ostringstream socket_name;
socket_name << "yabridge-group-" << group_name << "-" socket_name << "yabridge-group-" << group_name << "-"
<< std::hash<std::string>{}(wine_prefix.string()) << "-"; << std::to_string(
std::hash<std::string>{}(wine_prefix.string()))
<< "-";
switch (architecture) { switch (architecture) {
case PluginArchitecture::vst_32: case PluginArchitecture::vst_32:
socket_name << "x32"; socket_name << "x32";