| 44 | } |
| 45 | |
| 46 | void AppFile::buildIconTexture() { |
| 47 | if (Fs::doesNativePathExist(localIconPath)) { |
| 48 | int w = 0, h = 0; |
| 49 | unsigned char* data = LoadImageFromFile(localIconPath.c_str(), &w, &h); |
| 50 | if (data) { |
| 51 | this->iconTexture = std::make_shared<BoxedTexture>([data, w, h]() { |
| 52 | return MakeRGBATexture(data, w, h); |
| 53 | }); |
| 54 | } |
| 55 | |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void AppFile::runOptions(BoxedContainer* container, BoxedApp* app, const std::vector<BString>& options, std::list< std::function<bool() > >& runner, std::list<AppDownloadTask>& downloads) { |
| 60 | // :TODO: find dependencies, if there are some then delay the other changes |
no test coverage detected