fmt 10.0.0-10.1.1 compile fixes

Implicit conversion operators and enums was removed for parity with std::format (https://github.com/fmtlib/fmt/commit/fce74caa15b24cbc0fcafe4706692cb06cb0b815).
This commit is contained in:
get
2023-09-21 01:19:23 +02:00
committed by Admiral H. Curtiss
parent 965283c263
commit 63467559b2
8 changed files with 38 additions and 8 deletions
@@ -23,6 +23,7 @@
#include <fmt/format.h>
#include "Common/HRWrap.h"
#include "Common/Logging/Log.h"
#include "Common/StringUtil.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
@@ -506,7 +507,7 @@ private:
catch (winrt::hresult_error error)
{
ERROR_LOG_FMT(CONTROLLERINTERFACE,
"WGInput: IRawGameController::GetCurrentReading failed: {:x}", error.code());
"WGInput: IRawGameController::GetCurrentReading failed: {}", error.code());
}
// IGamepad:
@@ -518,7 +519,7 @@ private:
}
catch (winrt::hresult_error error)
{
ERROR_LOG_FMT(CONTROLLERINTERFACE, "WGInput: IGamepad::GetCurrentReading failed: {:x}",
ERROR_LOG_FMT(CONTROLLERINTERFACE, "WGInput: IGamepad::GetCurrentReading failed: {}",
error.code());
}
}