|
1 | 1 | /* Avalanche |
2 | | - * (c) 2023-5 Chris Young |
| 2 | + * (c) 2023-6 Chris Young |
3 | 3 | * |
4 | 4 | * This program is free software; you can redistribute it and/or modify |
5 | 5 | * it under the terms of the GNU General Public License as published by |
@@ -312,6 +312,7 @@ static BOOL http_check_version_internal(void) |
312 | 312 | ULONG bufsize = 1024; |
313 | 313 | char *buffer = AllocVec(bufsize + 1, MEMF_CLEAR); |
314 | 314 | BOOL update_available = FALSE; |
| 315 | + BOOL thor_lha = FALSE; |
315 | 316 |
|
316 | 317 | static struct avalanche_version_numbers avn[] = { |
317 | 318 | { .name = "Avalanche\0", |
@@ -358,7 +359,12 @@ static BOOL http_check_version_internal(void) |
358 | 359 | .download_url = "https://aminet.net/util/arc/lha_68k.lha\0", |
359 | 360 | #endif |
360 | 361 | }, |
361 | | -#ifdef __amigaos4__ |
| 362 | +#ifndef __amigaos4__ |
| 363 | + { .name = "Lha (Thor)\0", |
| 364 | + .check_url = "https://aminet.net/util/arc/Lha_thor.readme\0", |
| 365 | + .download_url = "https://aminet.net/util/arc/Lha_thor.lha\0", |
| 366 | + } |
| 367 | +#else |
362 | 368 | { .name = "zip.library\0", |
363 | 369 | .check_url = "https://os4depot.net/share/library/misc/zip_lib_lha.readme\0", |
364 | 370 | .download_url = "https://os4depot.net/share/library/misc/zip_lib.lha\0", |
@@ -407,8 +413,21 @@ static BOOL http_check_version_internal(void) |
407 | 413 | case ACHECKVER_LHA: |
408 | 414 | avn[ACHECKVER_LHA].current_version = 0; |
409 | 415 | avn[ACHECKVER_LHA].current_revision = 0; |
410 | | - mod_lha_get_ver(&avn[ACHECKVER_LHA].current_version, &avn[ACHECKVER_LHA].current_revision); |
| 416 | + thor_lha = mod_lha_get_ver(&avn[ACHECKVER_LHA].current_version, &avn[ACHECKVER_LHA].current_revision); |
| 417 | + break; |
| 418 | + |
| 419 | +#ifndef __amigaos4__ |
| 420 | + case ACHECKVER_LHA_THOR: |
| 421 | + if(thor_lha) { |
| 422 | + avn[ACHECKVER_LHA_THOR].current_version = avn[ACHECKVER_LHA].current_version; |
| 423 | + avn[ACHECKVER_LHA_THOR].current_revision = avn[ACHECKVER_LHA].current_revision; |
| 424 | + |
| 425 | + avn[ACHECKVER_LHA].check_url = NULL; |
| 426 | + avn[ACHECKVER_LHA].current_version = 0; |
| 427 | + avn[ACHECKVER_LHA].current_revision = 0; |
| 428 | + } |
411 | 429 | break; |
| 430 | +#endif |
412 | 431 |
|
413 | 432 | #ifdef __amigaos4__ |
414 | 433 | case ACHECKVER_ZIP: |
|
0 commit comments