mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-15 08:11:26 +00:00
feat: convert from dds to iwi
This commit is contained in:
4 files changed
+355
-277
No files matched your search
@@ -40,12 +40,10 @@ bool AssetLoaderGfxImage::LoadFromRaw(
|
||||
if (!file.IsOpen())
|
||||
return false;
|
||||
|
||||
const DdsLoader ddsLoader(zone->GetMemory());
|
||||
auto* texture = ddsLoader.LoadDds(*file.m_stream);
|
||||
|
||||
if (texture == nullptr)
|
||||
const auto texture = dds::LoadDds(*file.m_stream);
|
||||
if (!texture)
|
||||
{
|
||||
std::cout << std::format("Failed to load dds file for image asset \"{}\"\n", assetName);
|
||||
std::cerr << std::format("Failed to load dds file for image asset \"{}\"\n", assetName);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user