diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-05 17:47:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-05 18:37:00 +0200 |
commit | 0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59 (patch) | |
tree | e88b639971d1b41d944829db79083e92b7548415 /src/core/file_sys/system_archive/mii_model.cpp | |
parent | Merge pull request #4476 from lioncash/tz (diff) | |
download | yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar.gz yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar.bz2 yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar.lz yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar.xz yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.tar.zst yuzu-0a5456feb9bc2a0e7f02b4b7cee34f0353e76b59.zip |
Diffstat (limited to 'src/core/file_sys/system_archive/mii_model.cpp')
-rw-r--r-- | src/core/file_sys/system_archive/mii_model.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/core/file_sys/system_archive/mii_model.cpp b/src/core/file_sys/system_archive/mii_model.cpp index 61bb67945..d65c7d234 100644 --- a/src/core/file_sys/system_archive/mii_model.cpp +++ b/src/core/file_sys/system_archive/mii_model.cpp @@ -27,18 +27,12 @@ VirtualDir MiiModel() { auto out = std::make_shared<VectorVfsDirectory>(std::vector<VirtualFile>{}, std::vector<VirtualDir>{}, "data"); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::TEXTURE_LOW_LINEAR.size()>>( - MiiModelData::TEXTURE_LOW_LINEAR, "NXTextureLowLinear.dat")); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::TEXTURE_LOW_SRGB.size()>>( - MiiModelData::TEXTURE_LOW_SRGB, "NXTextureLowSRGB.dat")); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::TEXTURE_MID_LINEAR.size()>>( - MiiModelData::TEXTURE_MID_LINEAR, "NXTextureMidLinear.dat")); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::TEXTURE_MID_SRGB.size()>>( - MiiModelData::TEXTURE_MID_SRGB, "NXTextureMidSRGB.dat")); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::SHAPE_HIGH.size()>>( - MiiModelData::SHAPE_HIGH, "ShapeHigh.dat")); - out->AddFile(std::make_shared<ArrayVfsFile<MiiModelData::SHAPE_MID.size()>>( - MiiModelData::SHAPE_MID, "ShapeMid.dat")); + out->AddFile(MakeArrayFile(MiiModelData::TEXTURE_LOW_LINEAR, "NXTextureLowLinear.dat")); + out->AddFile(MakeArrayFile(MiiModelData::TEXTURE_LOW_SRGB, "NXTextureLowSRGB.dat")); + out->AddFile(MakeArrayFile(MiiModelData::TEXTURE_MID_LINEAR, "NXTextureMidLinear.dat")); + out->AddFile(MakeArrayFile(MiiModelData::TEXTURE_MID_SRGB, "NXTextureMidSRGB.dat")); + out->AddFile(MakeArrayFile(MiiModelData::SHAPE_HIGH, "ShapeHigh.dat")); + out->AddFile(MakeArrayFile(MiiModelData::SHAPE_MID, "ShapeMid.dat")); return out; } |