mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 00:29:23 +00:00
63467559b2
Implicit conversion operators and enums was removed for parity with std::format (fce74caa15
).
18 lines
377 B
C++
18 lines
377 B
C++
// Copyright 2021 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "HRWrap.h"
|
|
|
|
namespace Common
|
|
{
|
|
std::string GetHResultMessage(HRESULT hr)
|
|
{
|
|
auto err = winrt::hresult_error(hr);
|
|
return winrt::to_string(err.message());
|
|
}
|
|
std::string GetHResultMessage(const winrt::hresult& hr)
|
|
{
|
|
return GetHResultMessage(hr.value);
|
|
}
|
|
} // namespace Common
|