mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-29 13:01:18 +00:00
17 lines
278 B
C++
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();
|
|
}
|
|
} |