Add oramod file association for Windows and Linux.
This commit is contained in:
12
packaging/linux/openra-launch-mod.desktop
Normal file
12
packaging/linux/openra-launch-mod.desktop
Normal 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;
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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" ""
|
||||
|
||||
Reference in New Issue
Block a user