Skip to content

FileIO fails to load some files #61

Description

@DNAmaster10

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions