summaryrefslogtreecommitdiff
path: root/updater/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'updater/socket.cpp')
-rw-r--r--updater/socket.cpp12
1 files changed, 7 insertions, 5 deletions
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];