aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 15:52:57 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 15:52:57 +0100
commit78c370bd6cb37c156d06e098fe4e555a9da9dcee (patch)
tree00ee16cb652811b009642833514a2e2b1f5e1d15 /src/crepe/facade/SDLContext.cpp
parent5e59c22f77073fdf49bf98697da6a68819eb5776 (diff)
fix format strings w/o printf
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index a28f7bd..1cb2936 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -159,7 +159,7 @@ SDLContext::texture_from_path(const std::string & path) {
SDL_Surface * tmp = IMG_Load(path.c_str());
if (tmp == nullptr) {
- throw Exception("surface cannot be load from %s", path.c_str());
+ throw Exception("surface cannot be load from {}", path);
}
std::unique_ptr<SDL_Surface, std::function<void(SDL_Surface *)>>
@@ -171,7 +171,7 @@ SDLContext::texture_from_path(const std::string & path) {
this->game_renderer.get(), img_surface.get());
if (tmp_texture == nullptr) {
- throw Exception("Texture cannot be load from %s", path.c_str());
+ throw Exception("Texture cannot be load from {}", path);
}
std::unique_ptr<SDL_Texture, std::function<void(SDL_Texture *)>>