Skip to content

Paths with "//" instead of "/" works in editor but not in export #52507

Closed
@gdesecrate

Description

Godot version

3.3.3.stable

System information

Manjaro 21.1.1 Pahvo, GLES2, Radeon RX 5500 XT (NAVI14, DRM 3.40.0, 5.10.60-1-MANJARO, LLVM 12.0.1)

Issue description

If you use "//" in file name instead of "/" while in editor and run - all works fine.
If you export project - it would won't work anymore.

Accidentally hit this issue because I was constructing file path with string operations.

Steps to reproduce

  1. Use "//" instead of "/" in address on file, like "res://folder//folder//folder//icon.png"
  2. use this address to load() something
  3. It would work while running from editor
  4. It won't work after export

Minimal reproduction project

New Game Project.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions