Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Bug in AssetManager.enqueueSingle() with custom name in 2.4. #1053

Closed PippoApps closed 5 years ago

PippoApps commented 5 years ago

Hello there, A blocker bug in enqueueSingle() using a custom name. If I call this: mainAssets.enqueueSingle("file.png", "file.png"); AssetManager with verbose=true traces this: [AssetManager] Enqueuing 'file.png.png' And obviously file.png.png is not found.

Without custom name works fine. Thank you.

PrimaryFeather commented 5 years ago

Thanks a lot for making me aware of this!

Actually, it was a purely "cosmetical" issue — just the logging was false. The file was already accessible via the name file.png. I fixed the trace output so that you see the correct filename.

Please try it out and let me know if that works for you!