mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
Restore support for animated png files
* Rework resource manager * Add missing files * Improve some graphics classes
This commit is contained in:
@@ -26,9 +26,11 @@
|
||||
|
||||
ParticleManager g_particles;
|
||||
|
||||
bool ParticleManager::importParticle(const std::string& file)
|
||||
bool ParticleManager::importParticle(std::string file)
|
||||
{
|
||||
try {
|
||||
file = g_resources.guessFileType(file, "otps");
|
||||
|
||||
OTMLDocumentPtr doc = OTMLDocument::parse(file);
|
||||
for(const OTMLNodePtr& node : doc->children()) {
|
||||
if(node->tag() == "Effect") {
|
||||
|
||||
Reference in New Issue
Block a user