ObjWriting: Use proper extension when dumping image files

This commit is contained in:
Jan
2020-02-19 15:52:07 +01:00
parent 87d760f6d7
commit b436781632
2 changed files with 37 additions and 13 deletions

View File

@ -2,11 +2,23 @@
#include "Dumping/AbstractAssetDumper.h"
#include "Game/T6/T6.h"
#include "Image/IImageWriter.h"
class AssetDumperGfxImage final : public AbstractAssetDumper<T6::GfxImage>
{
IImageWriter* m_writer;
protected:
bool ShouldDump(T6::GfxImage* asset) override;
std::string GetFileNameForAsset(Zone* zone, T6::GfxImage* asset) override;
void DumpAsset(Zone* zone, T6::GfxImage* asset, FileAPI::File* out) override;
public:
AssetDumperGfxImage();
~AssetDumperGfxImage();
AssetDumperGfxImage(const AssetDumperGfxImage& other) = delete;
AssetDumperGfxImage(AssetDumperGfxImage&& other) noexcept = delete;
AssetDumperGfxImage& operator=(const AssetDumperGfxImage& other) = delete;
AssetDumperGfxImage& operator=(AssetDumperGfxImage&& other) noexcept = delete;
};