We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6afcc commit 14fb2afCopy full SHA for 14fb2af
OpenGL/src/Renderer.cpp
@@ -24,12 +24,14 @@ const std::string& Renderer::ResPath() {
24
fs::path exe_dir = exe_path.parent_path();
25
26
// Check for "res/shaders" relative to the executable's directory
27
- if (fs::exists(exe_dir / "res" / "shaders"))
+ if (fs::exists(exe_dir / "res" / "shaders")) {
28
res_path = (exe_dir / "res").string() + "/";
29
- else if (fs::exists(RES_PATH "/res/shaders"))
+ } else if (fs::exists(RES_PATH "/res/shaders")) {
30
res_path = RES_PATH "/res/";
31
- else
32
- std::cout << "Resource directory not found\n";
+ } else {
+ std::cout << "Resource directory not found relative to " << exe_dir << " or " << RES_PATH << std::endl;
33
+ res_path = "./res/";
34
+ }
35
}
36
37
return res_path;
0 commit comments