diff options
| author | 2018-04-26 18:45:10 -0400 | |
|---|---|---|
| committer | 2018-04-26 18:45:10 -0400 | |
| commit | 6a3d59fdc103c1a254a8d83115957a1d4671d322 (patch) | |
| tree | ad4c0c1e03d94197d8382b76e6e0d30d55cec0c6 /src/core/frontend/input.h | |
| parent | Merge pull request #399 from bunnei/shader-ints (diff) | |
| parent | core: Replace remaining old non-generic logger usages with fmt-capable equiva... (diff) | |
| download | yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.gz yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.xz yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.zip | |
Merge pull request #402 from lioncash/core
core: Replace remaining old non-generic logger usages with fmt-capable equivalents
Diffstat (limited to 'src/core/frontend/input.h')
| -rw-r--r-- | src/core/frontend/input.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index 8c256beb5..79e52488f 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h | |||
| @@ -59,7 +59,7 @@ template <typename InputDeviceType> | |||
| 59 | void RegisterFactory(const std::string& name, std::shared_ptr<Factory<InputDeviceType>> factory) { | 59 | void RegisterFactory(const std::string& name, std::shared_ptr<Factory<InputDeviceType>> factory) { |
| 60 | auto pair = std::make_pair(name, std::move(factory)); | 60 | auto pair = std::make_pair(name, std::move(factory)); |
| 61 | if (!Impl::FactoryList<InputDeviceType>::list.insert(std::move(pair)).second) { | 61 | if (!Impl::FactoryList<InputDeviceType>::list.insert(std::move(pair)).second) { |
| 62 | LOG_ERROR(Input, "Factory %s already registered", name.c_str()); | 62 | NGLOG_ERROR(Input, "Factory '{}' already registered", name); |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| 65 | 65 | ||
| @@ -71,7 +71,7 @@ void RegisterFactory(const std::string& name, std::shared_ptr<Factory<InputDevic | |||
| 71 | template <typename InputDeviceType> | 71 | template <typename InputDeviceType> |
| 72 | void UnregisterFactory(const std::string& name) { | 72 | void UnregisterFactory(const std::string& name) { |
| 73 | if (Impl::FactoryList<InputDeviceType>::list.erase(name) == 0) { | 73 | if (Impl::FactoryList<InputDeviceType>::list.erase(name) == 0) { |
| 74 | LOG_ERROR(Input, "Factory %s not registered", name.c_str()); | 74 | NGLOG_ERROR(Input, "Factory '{}' not registered", name); |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | 77 | ||
| @@ -88,7 +88,7 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) { | |||
| 88 | const auto pair = factory_list.find(engine); | 88 | const auto pair = factory_list.find(engine); |
| 89 | if (pair == factory_list.end()) { | 89 | if (pair == factory_list.end()) { |
| 90 | if (engine != "null") { | 90 | if (engine != "null") { |
| 91 | LOG_ERROR(Input, "Unknown engine name: %s", engine.c_str()); | 91 | NGLOG_ERROR(Input, "Unknown engine name: {}", engine); |
| 92 | } | 92 | } |
| 93 | return std::make_unique<InputDeviceType>(); | 93 | return std::make_unique<InputDeviceType>(); |
| 94 | } | 94 | } |