From c10325a57b62cbff94b474356a46e400fed0c2d8 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 1 Aug 2007 06:05:41 +0000 Subject: added option not to unzip saved archives removed translation of folders plugin strings git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@317 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/socket.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'updater/socket.cpp') diff --git a/updater/socket.cpp b/updater/socket.cpp index 233c458..d066a9d 100644 --- a/updater/socket.cpp +++ b/updater/socket.cpp @@ -102,11 +102,13 @@ bool GetFile(char *url, TCHAR *temp_folder, char *plugin_name, char *version, bo if(ext && *ext && strcmp(ext, ".zip") == 0) { - char *ans_save_file = GetAString(save_file), *ans_temp_folder = GetAString(temp_folder); - //MessageBoxA(0, ans_temp_folder, ans_save_file, MB_OK); - unzip_file(ans_save_file, ans_temp_folder); - free(ans_save_file); - free(ans_temp_folder); + if(!options.no_unzip) { + char *ans_save_file = GetAString(save_file), *ans_temp_folder = GetAString(temp_folder); + //MessageBoxA(0, ans_temp_folder, ans_save_file, MB_OK); + unzip_file(ans_save_file, ans_temp_folder); + free(ans_save_file); + free(ans_temp_folder); + } if(options.save_zips) { TCHAR save_archive[MAX_PATH]; -- cgit v1.2.3