From 35b386018ee60645997f6d5f58f5e3635f2893dd Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 23 Jun 2015 09:05:10 -0700 Subject: [PATCH] Messy hook up to LZMA binding (this should be changed) --- project/src/ExternalInterface.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/project/src/ExternalInterface.cpp b/project/src/ExternalInterface.cpp index 66da8ab33..9af6ecbb9 100644 --- a/project/src/ExternalInterface.cpp +++ b/project/src/ExternalInterface.cpp @@ -35,6 +35,7 @@ #include #include #include +#include <../lib/lzma/include/lzma.h> namespace lime { @@ -673,26 +674,26 @@ namespace lime { value lime_lzma_decode (value input_value) { - /*buffer input_buffer = val_to_buffer(input_value); + buffer input_buffer = val_to_buffer(input_value); buffer output_buffer = alloc_buffer_len(0); - Lzma::Decode (input_buffer, output_buffer); + native_toolkit_lzma::Lzma::Decode (input_buffer, output_buffer); - return buffer_val (output_buffer);*/ - return alloc_null (); + return buffer_val (output_buffer); + //return alloc_null (); } value lime_lzma_encode (value input_value) { - /*buffer input_buffer = val_to_buffer(input_value); + buffer input_buffer = val_to_buffer(input_value); buffer output_buffer = alloc_buffer_len(0); - Lzma::Encode (input_buffer, output_buffer); + native_toolkit_lzma::Lzma::Encode (input_buffer, output_buffer); - return buffer_val (output_buffer);*/ - return alloc_null (); + return buffer_val (output_buffer); + //return alloc_null (); }