Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Export issue... file cannot be found with loadfile/dofile — Gideros Forum

Export issue... file cannot be found with loadfile/dofile

snookssnooks Member
edited August 2017 in Bugs and issues
I am having an issue with loadfile and dofile when they are used. They work in the Player, but when I export to Windows Desktop or win32 I am getting an error relating to the file not being found.
Test = Core.class(Sprite)
 
function Test:init(filename)
	print("Filename = ".. filename)
	self.fn = loadfile(filename)()
end
This should fail on export when you use it...
local testy = Test.new('blah.lua')
Where blah.lua is a file that exists in the same directory as everything else and has definitely been added to the Gideros project.

e: I thought it was just in a class, but just this fails when exported too...
fn = loadfile('blah.lua')()

Comments

Sign In or Register to comment.