summaryrefslogtreecommitdiff
path: root/src/resources/loaders
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
commitea7ce2d1099761d4f10a1985cc1491dd306093fb (patch)
tree0ecc2ba76c949af2876ea3fe532d3796d4d0f666 /src/resources/loaders
parentd5a295a5ef8338a6d292bb3c60bddcfb8baf17bc (diff)
downloadmanaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.gz
manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.bz2
manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.xz
manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.zip
Replace SDL macro defines to SDL_GetError.
Diffstat (limited to 'src/resources/loaders')
-rw-r--r--src/resources/loaders/musicloader.cpp2
-rw-r--r--src/resources/loaders/soundloader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/loaders/musicloader.cpp b/src/resources/loaders/musicloader.cpp
index e734ddce6..7ac151c12 100644
--- a/src/resources/loaders/musicloader.cpp
+++ b/src/resources/loaders/musicloader.cpp
@@ -67,7 +67,7 @@ namespace
}
#endif // USE_SDL2
- logger->log("Error, failed to load music: %s", Mix_GetError());
+ logger->log("Error, failed to load music: %s", SDL_GetError());
return nullptr;
}
};
diff --git a/src/resources/loaders/soundloader.cpp b/src/resources/loaders/soundloader.cpp
index b99b48b6c..879bc0cb1 100644
--- a/src/resources/loaders/soundloader.cpp
+++ b/src/resources/loaders/soundloader.cpp
@@ -61,7 +61,7 @@ namespace
return new SoundEffect(tmpSoundEffect, rl->path);
}
reportAlways("Error, failed to load sound effect: %s",
- Mix_GetError());
+ SDL_GetError());
return nullptr;
}
};