Running LÖVE and creating .lua files

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Santos
Party member
Posts: 384
Joined: Sat Oct 22, 2011 7:37 am

Running LÖVE and creating .lua files

Post 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 49 times
love.png
love.png (7.02 KiB) Viewed 829 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 829 times

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lua\ShellNew]
"NullFile"=""
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Running LÖVE and creating .lua files

Post by Nixola »

Hey, these reg hacks look useful! How can I customize the default name and content of the .lua file?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Santos
Party member
Posts: 384
Joined: Sat Oct 22, 2011 7:37 am

Re: Running LÖVE and creating .lua files

Post 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! ^^
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests