Skip to content

Windows - Dome Fails to load files from other Drives #257

Description

@ayuvius

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

import "io" for FileSystem
import "audio" for AudioEngine

class main {
    construct new() {}
    init() {
		// with FileSystem
        FileSystem.load("C:/files/from_0_to_ONE.txt") // Fails
        FileSystem.load("/C/files/from_0_to_ONE.txt") // Fails
		
		// with AudioEngine
		AudioEngine.load("C:/audio/all_falls_down.mp3") // Fails
		AudioEngine.load("/C/audio/all_falls_down.mp3") // Fails

		// what works is only relative paths
		FileSystem.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)

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

    Labels

    bugSomething isn't workingwindowsRelated to the Windows platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions