| 738 | } |
| 739 | |
| 740 | sp<Video> DataImpl::loadVideo(const UString &path) |
| 741 | { |
| 742 | |
| 743 | if (path.substr(0, 4) == "SMK:") |
| 744 | { |
| 745 | auto splitString = split(path, ":"); |
| 746 | if (splitString.size() != 2) |
| 747 | { |
| 748 | LogError("Invalid SMK string: \"%s\"", path); |
| 749 | return nullptr; |
| 750 | } |
| 751 | auto file = this->fs.open(splitString[1]); |
| 752 | if (!file) |
| 753 | { |
| 754 | LogWarning("Failed to open SMK file \"%s\"", splitString[1]); |
| 755 | return nullptr; |
| 756 | } |
| 757 | return loadSMKVideo(file); |
| 758 | } |
| 759 | LogError("Unknown video string \"%s\"", path); |
| 760 | return nullptr; |
| 761 | } |
| 762 | |
| 763 | bool DataImpl::writeImage(UString systemPath, sp<Image> image, sp<Palette> palette) |
| 764 | { |
no test coverage detected