Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player doesn't load a graphics file with the wrong extension #163

Closed
javlag opened this issue Oct 28, 2013 · 1 comment
Closed

Player doesn't load a graphics file with the wrong extension #163

javlag opened this issue Oct 28, 2013 · 1 comment

Comments

@javlag
Copy link

javlag commented Oct 28, 2013

For example ,a bmp file named file.png won't be loaded while the RPG_RT.exe loads it. It returns "Invalid BMP file" while RPG_RT.exe solve the problem by itself without renaming the wrong file
captura de pantalla de 2013-10-28 18 41 53

@carstene1ns
Copy link
Member

This is a bit related to #74.
Possible solution:
Load file like now, but add a mimetype/fileheader check, if loading fails. Then load with correct type.
This way there is no extra work done for correct files.
Or, because file has to be loaded to memory anyway:
first load file to memory, then determine file type by magic number, then pass to correct function.

@Ghabry Ghabry modified the milestones: 0.2, 0.1.3, 0.3 May 17, 2014
@fdelapena fdelapena changed the title Player doesn't load a file with the wrong extension Player doesn't load a graphics file with the wrong extension Jun 21, 2014
@Ghabry Ghabry closed this as completed in cd7f97c Jun 21, 2014
@fdelapena fdelapena modified the milestones: 0.2.1, 0.3 Jul 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants