summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-09-24 00:04:19 +0200
committerZenWalker <[email protected]>2016-09-24 00:04:19 +0200
commit0a78609dfbaeba6f6897c37113f5750a5fe69472 (patch)
tree82186bb3f28a9eab78e4799de2297b285472c769 /src
parentac10beadfc80f3fad2e59464fe1b168b14cfc6d7 (diff)
downloadengrampa-0a78609dfbaeba6f6897c37113f5750a5fe69472.tar.bz2
engrampa-0a78609dfbaeba6f6897c37113f5750a5fe69472.tar.xz
amiga "lha" files supported
Fixes #155
Diffstat (limited to 'src')
-rw-r--r--src/fr-command-lha.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c
index 55a7218..033bdf6 100644
--- a/src/fr-command-lha.c
+++ b/src/fr-command-lha.c
@@ -120,6 +120,11 @@ split_line_lha (char *line)
fields[i++] = g_strdup ("");
line += strlen ("[unknown]");
}
+ else if (strncmp (line, "[Amiga]", 7) == 0) {
+ fields[i++] = g_strdup ("");
+ fields[i++] = g_strdup ("");
+ line += strlen ("[Amiga]");
+ }
scan = eat_spaces (line);
for (; i < n_fields; i++) {
@@ -150,6 +155,9 @@ get_last_field_lha (char *line)
if (strncmp (line, "[unknown]", 9) == 0)
n--;
+ if (strncmp (line, "[Amiga]", 7) == 0)
+ n--;
+
field = eat_spaces (line);
for (i = 0; i < n; i++) {
field = strchr (field, ' ');