Tested versions
Reproducible in 3.6.1.stable, 3.6.stable, 3.5.3.stable, 3.5.2.stable, 3.5.1.stable, 3.5.stable, 3.4.5.stable, 3.4.4.stable, 3.4.3.stable, 3.4.2.stable, 3.4.1.stable, 3.4.stable
System information
Windows 11 - Godot 3.6.1.stable - GLES3 - AMD Ryzen 5 7600X processor - AMD Radeon RX 9070 XT graphics
Issue description
When launching from the editor after loading a resource pack through ProjectSettings.load_resource_pack(), and trying to query the res:// folder with Dictionary.dir_exists("res://") returns false, despite it returning true before the load_resource_pack operation. This does not happen when compiling the same code into an executable and running the same code through that application.
Steps to reproduce
- Launch via the editor (play)
- Query the res:// folder's existence through Directory.dir_exists(). This should return true:
var dir = Directory.new()
var does = dir.dir_exists("res://")
- Load a resource pack (does not matter if .pck or .zip):
ProjectSettings.load_resource_pack(C:\path\to\resource\pack.zip)
- Retry the same query on res:// as before. This will now return false:
var dir = Directory.new()
var does = dir.dir_exists("res://")
Minimal reproduction project (MRP)
load_resource_pack test.zip