summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/exception.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-06-29 05:44:03 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:40 +0200
commit2e5af95541adf581364ee3864be57f9b2b9a230f (patch)
tree939e3d203ecc1ea98fae168745004c28cdb9b007 /src/shader_recompiler/exception.h
parentshader: Account for 33-bit IADD3 scenario (diff)
downloadyuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.gz
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.bz2
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.lz
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.xz
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.zst
yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.zip
Diffstat (limited to 'src/shader_recompiler/exception.h')
-rw-r--r--src/shader_recompiler/exception.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/exception.h b/src/shader_recompiler/exception.h
index 43f08162d..337e7f0c8 100644
--- a/src/shader_recompiler/exception.h
+++ b/src/shader_recompiler/exception.h
@@ -37,21 +37,21 @@ class LogicError : public Exception {
public:
template <typename... Args>
LogicError(const char* message, Args&&... args)
- : Exception{fmt::format(message, std::forward<Args>(args)...)} {}
+ : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};
class RuntimeError : public Exception {
public:
template <typename... Args>
RuntimeError(const char* message, Args&&... args)
- : Exception{fmt::format(message, std::forward<Args>(args)...)} {}
+ : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};
class NotImplementedException : public Exception {
public:
template <typename... Args>
NotImplementedException(const char* message, Args&&... args)
- : Exception{fmt::format(message, std::forward<Args>(args)...)} {
+ : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {
Append(" is not implemented");
}
};
@@ -60,7 +60,7 @@ class InvalidArgument : public Exception {
public:
template <typename... Args>
InvalidArgument(const char* message, Args&&... args)
- : Exception{fmt::format(message, std::forward<Args>(args)...)} {}
+ : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
};
} // namespace Shader