Add oramod file association for Windows and Linux.

This commit is contained in:
Paul Chote
2016-08-24 11:08:46 +01:00
parent fab807b86e
commit 4d75d7f4b6
4 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=OpenRA
GenericName=Real Time Strategy Game
Comment=Reimagining of early Westwood Games
Icon=openra
Exec=openra Game.Mod=%f
Terminal=false
NoDisplay=true
Categories=Game;StrategyGame;
MimeType=application/x-openra-mod;

View File

@@ -8,6 +8,13 @@
<glob weight="60" pattern="*.orarep"/>
</mime-type>
<mime-type type="application/x-openra-mod">
<icon name="openra" />
<generic-icon name="applications-games"/>
<comment>OpenRA Mod</comment>
<glob weight="60" pattern="*.oramod"/>
</mime-type>
<mime-type type="x-scheme-handler/openra">
<icon name="openra" />
<generic-icon name="applications-games"/>

View File

@@ -60,7 +60,12 @@ Section "-Reg" Reg
WriteRegStr HKLM "Software\Classes\.orarep" "" "OpenRA_replay"
WriteRegStr HKLM "Software\Classes\OpenRA_replay\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0"
WriteRegStr HKLM "Software\Classes\OpenRA_replay\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Launch.Replay=$\"%1$\""
; oramod file association
WriteRegStr HKLM "Software\Classes\.oramod" "" "OpenRA_mod"
WriteRegStr HKLM "Software\Classes\OpenRA_mod\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0"
WriteRegStr HKLM "Software\Classes\OpenRA_mod\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Game.Mod=$\"%1$\""
; OpenRA URL Scheme
WriteRegStr HKLM "Software\Classes\openra" "" "URL:OpenRA scheme"
WriteRegStr HKLM "Software\Classes\openra" "URL Protocol" ""