diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-18 04:55:50 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-18 04:55:50 +0100 |
commit | 745b0219c5dae25d65f18ef13fd5dfd9ca23b671 (patch) | |
tree | b9d4c36dce32830efd873ccacd25864d22f0e655 /src/core/loader/ncch.cpp | |
parent | Merge pull request #192 from bunnei/fs-fix-paths (diff) | |
parent | core: Mark some hle functions as static (diff) | |
download | yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar.gz yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar.bz2 yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar.lz yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar.xz yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.tar.zst yuzu-745b0219c5dae25d65f18ef13fd5dfd9ca23b671.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/ncch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index 1e5501e6d..5b6f88604 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -24,7 +24,7 @@ static const int kBlockSize = 0x200; ///< Size of ExeFS blocks (in bytes) * @param size Size of compressed buffer * @return Size of decompressed buffer */ -u32 LZSS_GetDecompressedSize(u8* buffer, u32 size) { +static u32 LZSS_GetDecompressedSize(u8* buffer, u32 size) { u32 offset_size = *(u32*)(buffer + size - 4); return offset_size + size; } @@ -37,7 +37,7 @@ u32 LZSS_GetDecompressedSize(u8* buffer, u32 size) { * @param decompressed_size Size of decompressed buffer * @return True on success, otherwise false */ -bool LZSS_Decompress(u8* compressed, u32 compressed_size, u8* decompressed, u32 decompressed_size) { +static bool LZSS_Decompress(u8* compressed, u32 compressed_size, u8* decompressed, u32 decompressed_size) { u8* footer = compressed + compressed_size - 8; u32 buffer_top_and_bottom = *(u32*)footer; u32 out = decompressed_size; |