Page 1 of 1

Running LÖVE and creating .lua files

Posted: Tue Mar 05, 2013 8:18 pm
by Santos
Hey everyone!

I just discovered some ways to run a folder with LÖVE and create .lua files on Windows, so I thought I'd share them here!

Here are the .reg files:
regs.zip
(531 Bytes) Downloaded 50 times
love.png
love.png (7.02 KiB) Viewed 832 times
Be sure to edit the location of LÖVE if your love.exe is elsewhere. Also, I think works when right-clicking within a folder as well in Vista and later.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\love]
@="&LÖVE"

[HKEY_CLASSES_ROOT\Directory\shell\love\command]
@="\"C:\\Program Files\\LOVE\\love.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\love]
@="&LÖVE"

[HKEY_CLASSES_ROOT\Directory\Background\shell\love\command]
@="\"C:\\Program Files\\LOVE\\love.exe\" \"%V\""
lua.png
lua.png (14.85 KiB) Viewed 832 times

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lua\ShellNew]
"NullFile"=""

Re: Running LÖVE and creating .lua files

Posted: Tue Mar 05, 2013 8:22 pm
by Nixola
Hey, these reg hacks look useful! How can I customize the default name and content of the .lua file?

Re: Running LÖVE and creating .lua files

Posted: Tue Mar 05, 2013 8:53 pm
by Santos
I'm not sure! :ultraglee: I think the name comes from the file association, I've installed Lua for Windows so that's why I have that name and icon in the screenshot. You could change the file association with something like FileTypesMan (I'd assume there'd be some way to do it with Windows too). And I have no idea to create some default content in the file sorry. Good luck! ^^