Page 1 of 1

LÖVE in the context menu

Posted: Mon Sep 22, 2008 9:58 am
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. :)

Re: LÖVE in the context menu

Posted: Mon Sep 22, 2008 1:10 pm
by rude
Hey Jared.

That's a good idea. I'll see about adding it to the installer.

Re: LÖVE in the context menu

Posted: Mon Sep 22, 2008 3:46 pm
by Kaze
Good idea. Hadn't thought of that, I just use a batch file :(..

Re: LÖVE in the context menu

Posted: Mon Sep 22, 2008 4:14 pm
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.

Re: LÖVE in the context menu

Posted: Mon Sep 22, 2008 5:27 pm
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.

Re: LÖVE in the context menu

Posted: Tue Sep 23, 2008 6:38 am
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

Re: LÖVE in the context menu

Posted: Mon Sep 29, 2008 11:21 am
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.

Re: LÖVE in the context menu

Posted: Tue Sep 30, 2008 1:47 pm
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?