Skip to content

Commit 09f8f9d

Browse files
committed
fix res pack mounting
1 parent e0039e9 commit 09f8f9d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/ruis/standard_widgets.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,19 @@ void ruis::init_standard_widgets(
5050
# include "../soname.txt"
5151
;
5252

53-
paths.push_back(utki::cat("/usr/local/share/ruis/res"sv, soname));
54-
paths.push_back(utki::cat("/usr/share/ruis/res"sv, soname));
53+
paths.push_back(utki::cat("/usr/local/share/ruis/res"sv, soname, "/"));
54+
paths.push_back(utki::cat("/usr/share/ruis/res"sv, soname, "/"));
5555
#endif
5656

5757
bool mounted = false;
5858
for (const auto& s : paths) {
5959
try {
6060
fi.set_path(s);
6161
context.loader().mount_res_pack(fi);
62-
} catch (std::runtime_error&) {
62+
} catch (std::runtime_error& e) {
63+
utki::log_debug([&](auto& o) {
64+
o << "could not mount resource pack from " << s << ": " << e.what() << std::endl;
65+
});
6366
continue;
6467
}
6568

0 commit comments

Comments
 (0)