summaryrefslogtreecommitdiff
path: root/src/port/Engine.cpp
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-06-22 12:49:15 +0000
committerGitHub <noreply@github.com>2025-06-22 06:49:15 -0600
commit0eb0ff49e0afaf62be2c70a173a122ac58bbabfb (patch)
tree2dbdf1ffd0d1352876bbbf88801505a0a4d22a26 /src/port/Engine.cpp
parente73d3f4fa366f8b984ca3568015fa8f6f3f79e62 (diff)
allow to replace img with png or jpg or bmp (#272)
* allow to replace img with png or jpg or bmp * revert experimental change
Diffstat (limited to 'src/port/Engine.cpp')
-rw-r--r--src/port/Engine.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp
index 8d66a0211..5ca0b22f6 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -20,6 +20,7 @@
#include "resource/importers/UnkActorSpawnDataFactory.h"
#include "resource/importers/ArrayFactory.h"
#include "resource/importers/MinimapFactory.h"
+#include "resource/importers/BetterTextureFactory.h"
#include <Fonts.h>
#include "window/gui/resource/Font.h"
#include "window/gui/resource/FontFactory.h"
@@ -202,11 +203,14 @@ GameEngine::GameEngine() {
loader->RegisterResourceFactory(std::make_shared<SF64::ResourceFactoryBinaryGenericArrayV0>(),
RESOURCE_FORMAT_BINARY, "GenericArray",
static_cast<uint32_t>(SF64::ResourceType::GenericArray), 0);
- loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY,
+ // loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY,
+ // "Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 0);
+ // loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY,
+ // "Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 1);
+ loader->RegisterResourceFactory(std::make_shared<MK64::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY,
"Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 0);
- loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY,
+ loader->RegisterResourceFactory(std::make_shared<MK64::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY,
"Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 1);
-
loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryVertexV0>(), RESOURCE_FORMAT_BINARY,
"Vertex", static_cast<uint32_t>(Fast::ResourceType::Vertex), 0);
loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryXMLVertexV0>(), RESOURCE_FORMAT_XML, "Vertex",