dofile() in a .love file in a Mac App Bundle
Posted: Tue Feb 07, 2012 4:06 am
In my game (well, it's not a game, but that's irrelevant), I use to load my UI library. It works fine when I do "love ." from the game folder, or if I zip it all up and do "love my-game.love".
When I build a Mac application bundle and put the .love file in my-game.app/Contents/Resources/my-game.love, however, it fails with the error:
Are relative paths not available the way the .love file is loaded in that situation? Is there another way to load the file?
Code: Select all
dofile("ui.lua")
When I build a Mac application bundle and put the .love file in my-game.app/Contents/Resources/my-game.love, however, it fails with the error:
Code: Select all
cannot open ui.lua: No such file or directory