Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request.
Still needs the addition of the frontend code to mkdir -p in .local, copy the files, call update-mime-info and such
--- a/share/hedgewars/Data/CMakeLists.txt Mon Nov 01 18:51:38 2010 +0100
+++ b/share/hedgewars/Data/CMakeLists.txt Mon Nov 01 17:12:32 2010 -0400
@@ -1,3 +1,3 @@
-foreach(dir "Fonts" "Forts" "Graphics" "Locale" "Maps" "Music" "Sounds" "Themes" "Missions" "Names")
+foreach(dir "Fonts" "Forts" "Graphics" "Locale" "Maps" "Music" "Sounds" "Themes" "Missions" "Names" "misc")
add_subdirectory(${dir})
endforeach(dir)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/misc/CMakeLists.txt Mon Nov 01 17:12:32 2010 -0400
@@ -0,0 +1,10 @@
+if(DEFINED DATA_INSTALL_DIR)
+ set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR})
+else()
+ set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)
+endif()
+configure_file(hwengine.desktop.in hwengine.desktop)
+
+file(GLOB miscfiles *.xml *.desktop)
+
+install(FILES ${miscfiles} DESTINATION ${SHAREPATH}Data/misc)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/misc/hedgewars-mimeinfo.xml Mon Nov 01 17:12:32 2010 -0400
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-hedgewars-demo">
+ <comment>Hedgewars Demo</comment>
+ <comment xml:lang="fr">Hedgewars Démonstration</comment>
+ <magic priority="50">
+ <match required="yes" type="byte" offset="0" value="2"/>
+ <match required="yes" type="big16" offset="1" value="21572"/>
+ </magic>
+ <glob weight="60" pattern="*.hwd"/>
+ </mime-type>
+ <mime-type type="application/x-hedgewars-save">
+ <comment>Hedgewars Save</comment>
+ <magic priority="50">
+ <match required="yes" type="byte" offset="0" value="2"/>
+ <match required="yes" type="big16" offset="1" value="21587"/>
+ </magic>
+ <glob weight="60" pattern="*.hws"/>
+ </mime-type>
+</mime-info>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/misc/hwengine.desktop.in Mon Nov 01 17:12:32 2010 -0400
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Encoding=UTF-8
+Name=Hedgewars Engine
+GenericName=Hedgewars engine, for playback of saves and demos
+#GenericName[fr]=translate me
+#GenericName[es]=translate me
+Icon=hedgewars.png
+Exec=hwengine ${HEDGEWARS_DATADIR}/hedgewars/Data %f
+Path=/tmp
+Terminal=false
+StartupNotify=false
+NoDisplay=true
+Categories=Application;Game;StrategyGame;
+MimeType=application/x-hedgewars-demo;application/x-hedgewars-save