diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-12-27 22:47:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-27 22:47:01 -0500 |
| commit | a0d3f7b68b754f0233ee0a8f014c4432e87dcc42 (patch) | |
| tree | 753ff5ef64db0ebf2b422ae95af3e6ca300717d9 /ZAPD/Main.cpp | |
| parent | fd5a7f434171a33b1b3eb2a3e112fdcee6d9262d (diff) | |
Add support for unaligned textures (#215)
* its done?
* replace UNALIGNED with u32
* Update Main.cpp
* Update Makefile
* Update ZTexture.cpp
* Update ZTexture.cpp
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 048338f..531edc0 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -434,6 +434,10 @@ void BuildAssetTexture(const fs::path& pngFilePath, TextureType texType, const f std::string name = outPath.stem().string(); ZTexture tex(nullptr); + + if (name.find("u32") != std::string::npos) + tex.dWordAligned = false; + tex.FromPNG(pngFilePath.string(), texType); std::string cfgPath = StringHelper::Split(pngFilePath.string(), ".")[0] + ".cfg"; |
