mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
(Windows) Made LottieAnimComponent work with filenames containing Unicode characters.
This commit is contained in:
parent
60213003b1
commit
f9b2dfe037
|
@ -102,7 +102,11 @@ void LottieAnimComponent::setAnimation(const std::string& path)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mAnimation = rlottie::Animation::loadFromFile(mPath);
|
ResourceData animData {ResourceManager::getInstance().getFileData(mPath)};
|
||||||
|
std::string cache;
|
||||||
|
|
||||||
|
mAnimation = rlottie::Animation::loadFromData(
|
||||||
|
std::string(reinterpret_cast<char*>(animData.ptr.get()), animData.length), cache);
|
||||||
|
|
||||||
if (mAnimation == nullptr) {
|
if (mAnimation == nullptr) {
|
||||||
LOG(LogError) << "Couldn't parse Lottie animation file \"" << mPath << "\"";
|
LOG(LogError) << "Couldn't parse Lottie animation file \"" << mPath << "\"";
|
||||||
|
|
Loading…
Reference in a new issue