You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By doing anything to load any file (either FileSystem or AudioEngine) from another drive (say, the program is in E: drive and I want stuff from C: drive), or even the same drive (with full path, not relative to main.wren)
Result
A Runtime error as thus:
Runtime error: Could not find file: <filename>
Expected behavior
The File/Music/Image to load
Minimal Reproducible Example
import"io"for FileSystem
import"audio"for AudioEngine
classmain {
constructnew() {}
init() {
// with FileSystemFileSystem.load("C:/files/from_0_to_ONE.txt") // FailsFileSystem.load("/C/files/from_0_to_ONE.txt") // Fails// with AudioEngineAudioEngine.load("C:/audio/all_falls_down.mp3") // FailsAudioEngine.load("/C/audio/all_falls_down.mp3") // Fails// what works is only relative pathsFileSystem.load("./../../file_on_same_drive.txt") // Works
}
update() {}
draw() {}
}
var Game = main.new()
Specs:
Dome Version: v1.8.0.1 - ffc441e
OS: Windows (bear it) 7 Basic
Hardware: Lenovo (bear it, again) G460 (2 months older than me)
The text was updated successfully, but these errors were encountered:
Interestingly, if you use this path instead: "//./C:/files/from_0_to_ONE.txt", it seems to work just fine. I'm not very familiar with the windows file system, so I don't really have any idea what this actually means.
It seems like the underlying call is just a simple fopen which should be able to open strings in the style of "C:/files/from_0_to_ONE.txt" (I tested this myself). It just doesn't seem to work inside of dome for some reason. There must be something that I overlooked in my admittedly cursory review of the code involved.
Description
By doing anything to load any file (either FileSystem or AudioEngine) from another drive (say, the program is in E: drive and I want stuff from C: drive), or even the same drive (with full path, not relative to
main.wren
)Result
A
Runtime error
as thus:Runtime error: Could not find file: <filename>
Expected behavior
The File/Music/Image to load
Minimal Reproducible Example
Specs:
Dome Version: v1.8.0.1 - ffc441e
OS: Windows (bear it) 7 Basic
Hardware: Lenovo (bear it, again) G460 (2 months older than me)
The text was updated successfully, but these errors were encountered: