16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 00:59:19 +02:00

search sounds also in root

This commit is contained in:
milek7
2017-08-19 19:05:41 +02:00
parent d048b32531
commit 3a004a0912

View File

@@ -86,6 +86,8 @@ sound_buffer* sound_manager::get_buffer(std::string const &name)
std::string file = find_file(Global::asCurrentDynamicPath + name);
if (!file.size())
file = find_file("sounds/" + name);
if (!file.size())
file = find_file(name);
if (!file.size())
throw load_error(name);