Raylib-J icon indicating copy to clipboard operation
Raylib-J copied to clipboard

FileIO fails to load some files

Open DNAmaster10 opened this issue 6 months ago • 4 comments

Describe the bug FileIO fails to load some files.

To Reproduce Steps to reproduce the behaviour:

  1. Load any image from resources folder

  2. Image does not get loaded.

  3. Try to load shader file from a folder within the resources folder (Such as resources/shaders)

  4. Files will not load unless present in the root /resources folder.

Expected behaviour Files should load correctly

Code public static final Shader STAR_SHADER = Window.getWindow().core.LoadShader("shaders/star.vs", "shaders/star.rs");

Image image = rl.textures.LoadImage("image.png")

Desktop (please complete the following information): Operating System: KDE neon 6.0 KDE Plasma Version: 6.1.2 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.0 Kernel Version: 6.5.0-44-generic (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 6700 XT

Additional context When debugging, it seems that (At least for the image), FileIO is able to correctly load the information from the file, but is not able to parse that information into an Image object.

I'll look further into the issue when I have some time.

Thanks!

DNAmaster10 avatar Jul 31 '24 23:07 DNAmaster10