mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
feat: convert from dds to iwi
This commit is contained in:
@ -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