Mac: Make preset sounds and graphics show as file packages

- Remove legacy sound/graphic file definitions
- Fix a couple of compiler warnings
This commit is contained in:
2015-06-09 11:31:59 -04:00
parent 233a50a1e2
commit dd5faacd4f
3 changed files with 54 additions and 52 deletions

View File

@@ -80,50 +80,6 @@
<key>NSPersistentStoreTypeKey</key> <key>NSPersistentStoreTypeKey</key>
<string>Binary</string> <string>Binary</string>
</dict> </dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>meg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boegraphics</string>
<key>CFBundleTypeName</key>
<string>LegacyMacGraphics</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>beGR</string>
</array>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.oldgraphics</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeIconFile</key>
<string>boesounds</string>
<key>CFBundleTypeName</key>
<string>LegacySounds</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>beSN</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.oldsounds</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
<array> <array>
@@ -132,7 +88,7 @@
<key>CFBundleTypeIconFile</key> <key>CFBundleTypeIconFile</key>
<string>boesave</string> <string>boesave</string>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Saved Game</string> <string>Blades of Exile Saved Game</string>
<key>CFBundleTypeOSTypes</key> <key>CFBundleTypeOSTypes</key>
<array> <array>
<string>game</string> <string>game</string>
@@ -157,7 +113,7 @@
<key>CFBundleTypeIconFile</key> <key>CFBundleTypeIconFile</key>
<string>boescenario</string> <string>boescenario</string>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Scenario</string> <string>Blades of Exile Scenario</string>
<key>CFBundleTypeOSTypes</key> <key>CFBundleTypeOSTypes</key>
<array> <array>
<string>BETM</string> <string>BETM</string>
@@ -201,7 +157,7 @@
<key>CFBundleTypeIconFile</key> <key>CFBundleTypeIconFile</key>
<string>boegraphics</string> <string>boegraphics</string>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Preset Graphics</string> <string>Blades of Exile Graphics</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>None</string> <string>None</string>
<key>LSItemContentTypes</key> <key>LSItemContentTypes</key>
@@ -221,7 +177,7 @@
<key>CFBundleTypeIconFile</key> <key>CFBundleTypeIconFile</key>
<string>boesounds</string> <string>boesounds</string>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Preset Sounds</string> <string>Blades of Exile Sounds</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>None</string> <string>None</string>
<key>LSItemContentTypes</key> <key>LSItemContentTypes</key>
@@ -268,7 +224,9 @@
<key>UTTypeTagSpecification</key> <key>UTTypeTagSpecification</key>
<dict> <dict>
<key>com.apple.ostype</key> <key>com.apple.ostype</key>
<array/> <array>
<string>BETM</string>
</array>
<key>public.filename-extension</key> <key>public.filename-extension</key>
<array> <array>
<string>exs</string> <string>exs</string>
@@ -291,6 +249,10 @@
<string>com.spidweb.bladesofexile.savegame</string> <string>com.spidweb.bladesofexile.savegame</string>
<key>UTTypeTagSpecification</key> <key>UTTypeTagSpecification</key>
<dict> <dict>
<key>com.apple.ostype</key>
<array>
<string>beSV</string>
</array>
<key>public.filename-extension</key> <key>public.filename-extension</key>
<array> <array>
<string>exg</string> <string>exg</string>
@@ -316,6 +278,46 @@
</array> </array>
</dict> </dict>
</dict> </dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>com.apple.package</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Graphics</string>
<key>UTTypeIconFile</key>
<string>boegraphics</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.graphics</string>
<key>UTTypeReferenceURL</key>
<string></string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>exd</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>com.apple.package</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Sounds</string>
<key>UTTypeIconFile</key>
<string>boesounds</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.sounds</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>exa</string>
</array>
</dict>
</dict>
</array> </array>
</dict> </dict>
</plist> </plist>

View File

@@ -11,7 +11,7 @@
#include "boe.graphutil.hpp" #include "boe.graphutil.hpp"
#include "boe.items.hpp" #include "boe.items.hpp"
#include "boe.party.hpp" #include "boe.party.hpp"
#include "boe.party.hpp" #include "boe.main.hpp"
#include "soundtool.hpp" #include "soundtool.hpp"
#include "fileio.hpp" #include "fileio.hpp"
#include "dlogutil.hpp" #include "dlogutil.hpp"

View File

@@ -451,7 +451,7 @@ static void readQuestFromXml(ticpp::Element& data, cQuest& quest) {
} }
} }
static void readShopFromXml(ticpp::Element& data, cShop& shop, cScenario& scen) { static void readShopFromXml(ticpp::Element& data, cShop& shop) {
using namespace ticpp; using namespace ticpp;
std::string type, name, val, fname; std::string type, name, val, fname;
data.GetDocument()->GetValue(&fname); data.GetDocument()->GetValue(&fname);
@@ -733,7 +733,7 @@ static void readScenarioFromXml(ticpp::Document&& data, cScenario& scenario) {
quests++; quests++;
} else if(type == "shop") { } else if(type == "shop") {
scenario.shops.emplace_back(); scenario.shops.emplace_back();
readShopFromXml(*game, scenario.shops[shops], scenario); readShopFromXml(*game, scenario.shops[shops]);
shops++; shops++;
} else if(type == "timer") { } else if(type == "timer") {
if(timers >= 20) if(timers >= 20)