| 95 | } |
| 96 | |
| 97 | std::string TryFindImage(const std::string &path_no_ext) { |
| 98 | for(const auto &fmt: ImageFormatList) { |
| 99 | const auto path = TryGetActiveThemeResource(path_no_ext + "." + fmt); |
| 100 | if(!path.empty()) { |
| 101 | return path; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | return ""; |
| 106 | } |
| 107 | |
| 108 | pu::sdl2::Texture TryFindLoadImage(const std::string &path_no_ext) { |
| 109 | for(const auto &fmt: ImageFormatList) { |
nothing calls this directly
no test coverage detected