Files
OptiScaler/CyberXeSS/Util.h
T
2024-03-02 00:09:42 +03:00

17 lines
278 B
C++

#pragma once
#include <filesystem>
namespace Util
{
std::filesystem::path ExePath();
std::filesystem::path DllPath();
};
inline void ThrowIfFailed(HRESULT hr)
{
if (FAILED(hr))
{
// Set a breakpoint on this line to catch DirectX API errors
throw std::exception();
}
}