summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/xts_archive.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-20file-sys: Default heavy-weight class destructors in the cpp fileLioncash1-0/+2
Several classes have a lot of non-trivial members within them, or don't but likely should have the destructor defaulted in the cpp file for future-proofing/being more friendly to forward declarations. Leaving the destructor unspecified allows the compiler to inline the destruction code all over the place, which is generally undesirable from a code bloat perspective.
2018-09-19xts_archive: Remove unused variables from CalculateHMAC256()Lioncash1-3/+0
These variables aren't used, which still has an impact, as std::vector cannot be optimized away by the compiler (it's constructor and destructor are both non-trivial), so this was just wasting memory.
2018-09-19xts_archive: Make AsNCA() return a std::unique_ptr instead of a std::shared_ptrLioncash1-2/+2
std::shared_ptr isn't strictly necessary here and is only ever used in contexts where the object doesn't depend on being shared. This also makes the interface more flexible, as it's possible to create a std::shared_ptr from a std::unique_ptr (std::shared_ptr has a constructor that accepts a std::unique_ptr), but not the other way around.
2018-09-19xts_archive: Amend initializer order of NAX's constructorLioncash1-2/+2
Orders the initializer list in the same order the members would be initialized. Avoids compiler warnings.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-4/+4
2018-09-02vfs_real: Forward declare IOFileLioncash1-0/+1
Eliminates the need to rebuild some source files if the file_util header ever changes. This also uncovered some indirect inclusions, which have also been fixed.
2018-08-25file_sys/crypto: Fix missing/unnecessary includesZach Hilman1-0/+2
2018-08-23crypto: Eliminate magic constantsZach Hilman1-11/+14
2018-08-23file_sys: Implement NAX containersZach Hilman1-0/+164