summaryrefslogtreecommitdiff
path: root/tools/src/asset_processor/main.cpp
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-12-06 17:00:46 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-12-06 17:00:46 +0100
commit80b66166f57ddca9dec06fbec6e621b1771e3cca (patch)
tree5b75135ff8034f0e08a37275f9bba368882798d4 /tools/src/asset_processor/main.cpp
parent03408debcd86ef85aa02a85680b4ebc26e53efb9 (diff)
Decompress map assets
Diffstat (limited to 'tools/src/asset_processor/main.cpp')
-rw-r--r--tools/src/asset_processor/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/src/asset_processor/main.cpp b/tools/src/asset_processor/main.cpp
index c1bb66cf..db472e6e 100644
--- a/tools/src/asset_processor/main.cpp
+++ b/tools/src/asset_processor/main.cpp
@@ -3,6 +3,7 @@
#include "assets/animation.h"
#include "assets/frameobjlists.h"
#include "assets/gfx.h"
+#include "assets/map.h"
#include "assets/midi.h"
#include "assets/palette.h"
#include "assets/spriteframe.h"
@@ -281,7 +282,9 @@ std::unique_ptr<BaseAsset> getAssetHandlerByType(const std::filesystem::path& pa
} else if (type == "map_gfx" || type == "map_layer1" || type == "map_layer2" || type == "metatiles_tile_types1" ||
type == "metatiles_tile_types2" || type == "metatiles_tileset1" || type == "metatiles_tileset2" ||
type == "map_mapping1" || type == "map_mapping2" || type == "tileset_mapping3" ||
- type == "map_collision" || type == "unknown") {
+ type == "map_collision") {
+ assetHandler = std::make_unique<MapAsset>(path, start, size, asset);
+ } else if (type == "unknown") {
// TODO implement conversions
assetHandler = std::make_unique<BaseAsset>(path, start, size, asset);
} else if (type.empty()) {