Page 2 of 2

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 4:21 am
by Robin
Oh god, it has started. Quick, everyone leave before the thread explodes with an interesting but off-topic discussion!

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 4:37 am
by BlackBulletIV
anjo wrote:
BlackBulletIV wrote:As for sandboxing, I personally think that folders and merged executables should have full rights, only to have their rights governed by the OS. This would make LOVE a good game development platform. But when it comes to a .love, sandboxing should be started; this makes LOVE a good game platform.
*downloads sandboxed .love*
*merges .love into executable*
:joker:
I don't see why the user would want to turn off sandboxing themselves.

But anyway, where were we... yes, symlinks... symlinks. Interesting members of society they are :P.

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 7:28 am
by TsT
Robin wrote:Oh god, it has started. Quick, everyone leave before the thread explodes with an interesting but off-topic discussion!
You're right. I don't want security for now, I just want symlink support :P

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 11:20 am
by Robin
TsT wrote:You're right. I don't want security for now, I just want symlink support :P
What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
(At the start of main.lua.)

Then you can place the shared libs in ../common/. You then only need to remember to copy the common/ directory into the game dir when distributing your game.

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 12:34 pm
by TsT
Robin wrote:What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
Oh it seems a good and beautiful workaround ! Thanks Robin :awesome:
Robin wrote:You then only need to remember to copy the common/ directory into the game dir when distributing your game.
This is for mainly for development. The release process is different and you can not forget so much libs ;)

Re: symlink not supported ?

Posted: Wed Apr 27, 2011 9:30 pm
by BlackBulletIV
Robin wrote:
TsT wrote:You're right. I don't want security for now, I just want symlink support :P
What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
(At the start of main.lua.)

Then you can place the shared libs in ../common/. You then only need to remember to copy the common/ directory into the game dir when distributing your game.
Hey that's a pretty cool hack!