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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user