summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-11-17 04:58:39 +0100
committerLioncash <mathew1800@gmail.com>2014-11-18 04:41:49 +0100
commit72846c418e59771cd63cb21067f0c3e4e58b16f0 (patch)
treeb9d4c36dce32830efd873ccacd25864d22f0e655 /src/core/loader
parentMerge pull request #192 from bunnei/fs-fix-paths (diff)
downloadyuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar.gz
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar.bz2
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar.lz
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar.xz
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.tar.zst
yuzu-72846c418e59771cd63cb21067f0c3e4e58b16f0.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/ncch.cpp4
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;