Add support for .lmp file formats to Mac Launcher
Once the app has been launched at least once, double-clicking upon an .lmp file should start the Chocolate Doom launcher and add appropriate "-playdemo" command-line arguments. Closes: #677.
This commit is contained in:
parent
21668aca63
commit
c9d46e0c7c
2 changed files with 17 additions and 0 deletions
|
|
@ -101,6 +101,11 @@
|
|||
[self->launcherManager addFileToCommandLine: fileName
|
||||
forArgument: @"-merge"];
|
||||
}
|
||||
else if (![extension caseInsensitiveCompare: @"lmp"])
|
||||
{
|
||||
[self->launcherManager addFileToCommandLine: fileName
|
||||
forArgument: @"-playdemo"];
|
||||
}
|
||||
else if (![extension caseInsensitiveCompare: @"deh"])
|
||||
{
|
||||
[self->launcherManager addFileToCommandLine: fileName
|
||||
|
|
|
|||
|
|
@ -49,6 +49,18 @@ Licensed under the GNU GPL v2.</string>
|
|||
<string>wad</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Doom demo recording</string>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>wadfile.icns</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>lmp</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Doom Dehacked patch</string>
|
||||
|
|
|
|||
Loading…
Reference in a new issue