logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

innoextract-1.7_inno_5.6.2_0001.patch (2226B)


  1. From 5cf1cb3ba07eba8d32b4bb961ba80401ea8248e7 Mon Sep 17 00:00:00 2001
  2. From: Daniel Scharrer <daniel@constexpr.org>
  3. Date: Sat, 8 Sep 2018 03:24:54 +0200
  4. Subject: [PATCH] Add preliminary Inno Setup 5.6.2 support
  5. ---
  6. CHANGELOG | 1 +
  7. src/setup/header.cpp | 13 +++++++++++--
  8. src/setup/header.hpp | 2 ++
  9. 3 files changed, 14 insertions(+), 2 deletions(-)
  10. diff --git a/src/setup/header.cpp b/src/setup/header.cpp
  11. index 1484181..844b2e9 100644
  12. --- a/src/setup/header.cpp
  13. +++ b/src/setup/header.cpp
  14. @@ -236,6 +236,13 @@ void header::load(std::istream & is, const version & version) {
  15. } else {
  16. setup_mutex.clear();
  17. }
  18. + if(version >= INNO_VERSION(5, 6, 1)) {
  19. + is >> util::encoded_string(changes_environment, version.codepage());
  20. + is >> util::encoded_string(changes_associations, version.codepage());
  21. + } else {
  22. + changes_environment.clear();
  23. + changes_associations.clear();
  24. + }
  25. if(version >= INNO_VERSION(5, 2, 5)) {
  26. is >> util::ansi_string(license_text);
  27. is >> util::ansi_string(info_before);
  28. @@ -498,7 +505,9 @@ void header::load(std::istream & is, const version & version) {
  29. if(version < INNO_VERSION(1, 3, 21)) {
  30. flagreader.add(OverwriteUninstRegEntries);
  31. }
  32. - flagreader.add(ChangesAssociations);
  33. + if(version < INNO_VERSION(5, 6, 1)) {
  34. + flagreader.add(ChangesAssociations);
  35. + }
  36. }
  37. if(version >= INNO_VERSION(1, 3, 21)) {
  38. if(version < INNO_VERSION(5, 3, 8)) {
  39. @@ -562,7 +571,7 @@ void header::load(std::istream & is, const version & version) {
  40. if(version >= INNO_VERSION(4, 2, 2)) {
  41. flagreader.add(EncryptionUsed);
  42. }
  43. - if(version >= INNO_VERSION(5, 0, 4)) {
  44. + if(version >= INNO_VERSION(5, 0, 4) && version < INNO_VERSION(5, 6, 1)) {
  45. flagreader.add(ChangesEnvironment);
  46. }
  47. if(version >= INNO_VERSION(5, 1, 7) && !version.unicode) {
  48. diff --git a/src/setup/header.hpp b/src/setup/header.hpp
  49. index a21dba0..8975e2f 100644
  50. --- a/src/setup/header.hpp
  51. +++ b/src/setup/header.hpp
  52. @@ -154,6 +154,8 @@ struct header {
  53. std::string uninstallable;
  54. std::string close_applications_filter;
  55. std::string setup_mutex;
  56. + std::string changes_environment;
  57. + std::string changes_associations;
  58. std::string license_text;
  59. std::string info_before;
  60. std::string info_after;