summaryrefslogtreecommitdiff
path: root/unrar/unrar.c
diff options
context:
space:
mode:
Diffstat (limited to 'unrar/unrar.c')
-rw-r--r--unrar/unrar.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/unrar/unrar.c b/unrar/unrar.c
index 1bd0b98..0db1493 100644
--- a/unrar/unrar.c
+++ b/unrar/unrar.c
@@ -1,5 +1,5 @@
/* UNRAR plugin for Tux Commander
- * version 0.3.6, designed for unrar v3.8.2
+ * version 0.3.7, designed for unrar v3.8.2
* Copyright (C) 2008 Tomas Bzatek <tbzatek@users.sourceforge.net>
* Check for updates on tuxcmd.sourceforge.net
*
@@ -55,8 +55,8 @@ enum HOST_SYSTEM {
};
-#define VERSION "0.3.6"
-#define BUILD_DATE "2009-10-24"
+#define VERSION "0.3.7"
+#define BUILD_DATE "2009-10-25"
#define DEFAULT_BLOCK_SIZE 65536
@@ -307,7 +307,7 @@ time_t rar_time_to_unix(unsigned int FileTime)
}
-TVFSResult VFSOpen(struct TVFSGlobs *globs, char *sName)
+TVFSResult VFSOpenArchive(struct TVFSGlobs *globs, char *sName)
{
TVFSResult Result = cVFS_OK;
@@ -318,7 +318,7 @@ TVFSResult VFSOpen(struct TVFSGlobs *globs, char *sName)
globs->total_size = 0;
globs->failed_passwd_callback = FALSE;
globs->volume_missing_abort = FALSE;
- fprintf(stderr, "(--) VFSOpen: trying to open archive '%s'...\n", globs->archive_path);
+ fprintf(stderr, "(--) VFSOpenArchive: trying to open archive '%s'...\n", globs->archive_path);
HANDLE PASCAL handle;
struct RAROpenArchiveDataEx *archive_data;
@@ -344,7 +344,7 @@ TVFSResult VFSOpen(struct TVFSGlobs *globs, char *sName)
// RARSetProcessDataProc(handle, unrar_process_data_proc);
if (globs->password) {
- fprintf(stderr, "(II) VFSOpen: Setting password... \n");
+ fprintf(stderr, "(II) VFSOpenArchive: Setting password... \n");
RARSetPassword(handle, globs->password);
}
@@ -408,7 +408,7 @@ TVFSResult VFSOpen(struct TVFSGlobs *globs, char *sName)
}
// printf("\nRARReadHeader result = %d\n", res);
if (res != ERAR_END_ARCHIVE || globs->volume_missing_abort) {
- fprintf(stderr, "(EE) VFSOpen: RARReadHeader result = %d\n", res);
+ fprintf(stderr, "(EE) VFSOpenArchive: RARReadHeader result = %d\n", res);
Result = cVFS_Failed;
if ((res == ERAR_MISSING_PASSWORD) || ((res == ERAR_BAD_DATA) && (globs->failed_passwd_callback)))
Result = cVFS_BadPassword;
@@ -417,15 +417,15 @@ TVFSResult VFSOpen(struct TVFSGlobs *globs, char *sName)
res = RARCloseArchive(handle);
if (res) {
- fprintf(stderr, "(EE) VFSOpen: RARCloseArchive result = %d\n", res);
+ fprintf(stderr, "(EE) VFSOpenArchive: RARCloseArchive result = %d\n", res);
}
} else {
- fprintf(stderr, "(EE) VFSOpen: error occured when opening archive: OpenResult = %d\n", archive_data->OpenResult);
+ fprintf(stderr, "(EE) VFSOpenArchive: error occured when opening archive: OpenResult = %d\n", archive_data->OpenResult);
Result = cVFS_Failed;
}
free(archive_data);
- fprintf(stderr, "(II) VFSOpen: done. \n");
+ fprintf(stderr, "(II) VFSOpenArchive: done. \n");
if (globs->need_password) printf("Password present.\n");
printf("\n\nList of items:\n");
filelist_tree_print(globs->files);