mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Wrong image data on image files with exclamation mark character on filename #662

Open Ryback2501 opened 3 years ago

Ryback2501 commented 3 years ago

When loading images with an exclamation mark on their filename using fe.add_image(), properties like texture_with return a value of 0, instead of the real width of the image.

I have uploaded code of a basic layout.nut file to test the problem. The code is on Pastebin (link here).

To test it, run a layout with this code and check the last_run.log file. (here there is an example of a test I ran).