Fixes some issues with sounds and the appropriate factory. Further moved the calculation of pin addresses with pin base into the factories
This commit is contained in:
@@ -59,10 +59,9 @@ std::map<std::string, std::shared_ptr<ItemType>> get_items(const std::string &co
|
||||
nlohmann::json config_json;
|
||||
config_stream >> config_json;
|
||||
|
||||
FactoryType factory{config_json, std::static_pointer_cast<ControllerType>(pin_controller)};
|
||||
|
||||
std::map<std::string, std::shared_ptr<ItemType>> map;
|
||||
try{
|
||||
FactoryType factory{config_json, std::static_pointer_cast<ControllerType>(pin_controller)};
|
||||
map = factory.getItemMap();
|
||||
}
|
||||
catch(json::exception & e)
|
||||
|
||||
Reference in New Issue
Block a user