mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-10 18:51:49 +00:00
feat: add external image loader for every supported game
This commit is contained in:
@@ -79,8 +79,8 @@ namespace
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto texture = image::LoadIwi(file);
|
||||
if (!texture)
|
||||
const auto loadResult = image::LoadIwi(file);
|
||||
if (!loadResult)
|
||||
return false;
|
||||
|
||||
auto outPath = iwiPath;
|
||||
@@ -93,7 +93,7 @@ namespace
|
||||
return false;
|
||||
}
|
||||
|
||||
m_dds_writer.DumpImage(outFile, texture.get());
|
||||
m_dds_writer.DumpImage(outFile, loadResult->m_texture.get());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user