I use the same message to avoid creating another post.
I'm looking the Samples in the JoEngine to improve my knowledge. I'm trying to put 2 different background images in "2 screens" (one method call other and each one has it own bg).
I'm using the
jo_tga_loader function like this:
//SCREEN 1
imgBackground.data = JO_NULL;
jo_tga_loader(&imgBackground, "BG", "IMG1.TGA", JO_COLOR_Transparent);
jo_set_background_sprite(&imgBackground, 0, 0);
jo_free_img(&imgBackground);
//SCREEN 2
imgBackground.data = JO_NULL;
jo_tga_loader(&imgBackground, "BG", "IMG2.TGA", JO_COLOR_Transparent);
jo_set_background_sprite(&imgBackground, 0, 0);
jo_free_img(&imgBackground);
The first screen (the menu) load the IMG1.TGA file.
When the A button it's pressed, clear the screen and the background and then loads the IMG2.TGA.
If in the screen 2, the
B button it's pressed, clear the screen and the background too and
come back to the screen 1 and loads again the IMG1.TGA file.
Up to this point there are no problems.
The problem comes now, if I repeat the process. If I press the A button again to change SCREEN 1 to 2, the engine throws an error saying that the file "IM___.TGA" file not found.

1. In the error, the file name not is complete, the complete file name is "IMG2.TGA", whats happening here?
2. To view a possible function anotations, I went to read the documentation of
jo_tga_loader, but this method doesn't exists on the original documentation, instead exists the function
jo_tga_loader_from_streamWhat's going on?
This is the best way to load an image background?
It's a bad idea load a TGA file in the background (for the performance)?
If jo_tga_loader_from_stream is the only one method, how I can convert the image background to binary to use this method?
Exists any other option?
Thanks all.
PD: I'm using Yabause or mednafen to do it, but each emulator works different.