LÖVE in the context menu

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Jared
Prole
Posts: 3
Joined: Mon Sep 22, 2008 6:38 am

LÖVE in the context menu

Post by Jared »

Not sure if this will be useful to any of you, but I made a registry entry to add "LÖVE" to the context menu in XP. Now I can just right click on a directory to run in LÖVE.

Image

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\love]
@="LÖVE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\love\command]
@="C:\\Program Files\\LOVE\\love.exe \"%1\""
Just save the code above in a file called whateveryouwant.reg, run it, then click yes when asked if you want to add to the registry.

I'm not 100% sure the registry is exactly the same in XP as Vista, but I don't imagine any of you Vista users would find it too difficult to modify accordingly.

This could be a nice feature done automatically when installing LÖVE. Just a thought! Hope you enjoy. :)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE in the context menu

Post by rude »

Hey Jared.

That's a good idea. I'll see about adding it to the installer.
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

Re: LÖVE in the context menu

Post by Kaze »

Good idea. Hadn't thought of that, I just use a batch file :(..
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: LÖVE in the context menu

Post by mike »

rude wrote:Hey Jared.

That's a good idea. I'll see about adding it to the installer.
Perhaps give people the option to add it and not do it automatically.
And does it work only on folders or on everything?
And maybe it should be "Run in LÖVE" or something like that.
And can it have an icon?

Jesus, this is my first post in weeks and I am a total bitch.
Now posting IN STEREO (where available)
User avatar
Jared
Prole
Posts: 3
Joined: Mon Sep 22, 2008 6:38 am

Re: LÖVE in the context menu

Post by Jared »

Thanks guys.
mike wrote:Perhaps give people the option to add it and not do it automatically.
And does it work only on folders or on everything?
Heh, well yeah, the option to do it would only make sense.
mike wrote:And maybe it should be "Run in LÖVE" or something like that.
Run in LÖVE would be the "proper" way to do it. I just wanted an entry to stand out from all my other annoying context menus I should have never allowed.
mike wrote:And can it have an icon?
Good idea, I should have done this. Then I wouldn't have minded wording it as "Run in LÖVE" or whatever.
Mr. Strange
Party member
Posts: 101
Joined: Mon Aug 11, 2008 5:19 am

Re: LÖVE in the context menu

Post by Mr. Strange »

Another point - you should specify the version number. Sometimes these things get out of sync with reality, which can be a real headache.

--Mr. Strange
User avatar
Sardtok
Party member
Posts: 108
Joined: Thu Feb 21, 2008 2:37 pm
Location: Norway/Norge/諾威/挪威 (Yes, I'm teh back!)
Contact:

Re: LÖVE in the context menu

Post by Sardtok »

mike wrote:And does it work only on folders or on everything?
The one that was set up is just for folders/directories.
But it should be easy enough to add an application/x-love thing (although I don't know if you really need a MIME-type for .love files),
and have .love files open i LÖVE.

Add this to the .reg maybe?

Code: Select all

[HKEY_CLASSES_ROOT\.love]
@="LoveArchive"
"Content Type"="application/x-love"
"PerceivedType"="compressed"
[HKEY_CLASSES_ROOT\LoveArchive\]
@="LÖVE Archive"
[HKEY_CLASSES_ROOT\LoveArchive\DefaultIcon]
@="%PATH_OF_LOVE%\lovearchive.ico"
[HKEY_CLASSES_ROOT\LoveArchive\shell\]
@="Open"
[HKEY_CLASSES_ROOT\LoveArchive\shell\Open]
@="&Open"
[HKEY_CLASSES_ROOT\LoveArchive\shell\Open\Command]
@="%PATH_OF_LOVE%\love.exe \"%1\"" 
I thought you already added .love file types with the installer, but again, I'm too lazy to check, Mike's question just triggered my crazy-arsed mind to set this up.
Also, you could possibly make Directory.Love, similar to Directory.Audio and such, but I don't really know how to set those things up.
Another, easier way to set up the love files, would be to just set it up in the SystemFileAssociations, but that's for pussies.

Maybe it's less evil to set things up in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ than in HKEY_CLASSES_ROOT\
But you have Folder, Directory and different file types in both, meaning you can add shell extensions to either.

I think you can also just replace all occurrences of Open, with LOVE or something.

So let's all go down the path of love.
Take off every Zigg for great rapist.
Now, outgay that!
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE in the context menu

Post by rude »

TortoiseSVN displays its full menu only if the folder in question is a SVN working copy. Does anyone know how to display "Open with LOVE" conditionally based on folder contents?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest