MX 2 лет назад
Родитель
Сommit
35282dc681
80 измененных файлов с 13 добавлено и 7 удалено
  1. 0 0
      apps_broken_by_last_refactors/mifare_nested/LICENSE.md
  2. 0 0
      apps_broken_by_last_refactors/mifare_nested/README.md
  3. 0 0
      apps_broken_by_last_refactors/mifare_nested/TODO.md
  4. 0 0
      apps_broken_by_last_refactors/mifare_nested/application.fam
  5. 0 0
      apps_broken_by_last_refactors/mifare_nested/assets/ApplyTag.png
  6. 0 0
      apps_broken_by_last_refactors/mifare_nested/assets/DolphinCry.png
  7. 0 0
      apps_broken_by_last_refactors/mifare_nested/assets/DolphinSuccess.png
  8. 0 0
      apps_broken_by_last_refactors/mifare_nested/assets/Loading.png
  9. 0 0
      apps_broken_by_last_refactors/mifare_nested/assets/icon.png
  10. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/crypto1/crypto1.c
  11. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/crypto1/crypto1.h
  12. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/nested/nested.c
  13. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/nested/nested.h
  14. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/parity/parity.c
  15. 0 0
      apps_broken_by_last_refactors/mifare_nested/lib/parity/parity.h
  16. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested.c
  17. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested.h
  18. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested_i.h
  19. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker.c
  20. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker.h
  21. 0 0
      apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker_i.h
  22. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene.c
  23. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene.h
  24. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_about.c
  25. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_added_keys.c
  26. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_check.c
  27. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_check_keys.c
  28. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_collecting.c
  29. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_config.h
  30. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_failed.c
  31. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_need_collection.c
  32. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_need_key_recovery.c
  33. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_no_keys.c
  34. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_no_nonces_collected.c
  35. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_nonces_collected.c
  36. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_settings.c
  37. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_start.c
  38. 0 0
      apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_static_encrypted_nonce.c
  39. 0 0
      apps_broken_by_last_refactors/nfc_maker/application.fam
  40. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/DolphinNice_96x59.png
  41. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeyBackspaceSelected_16x9.png
  42. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeyBackspace_16x9.png
  43. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeyKeyboardSelected_10x11.png
  44. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeyKeyboard_10x11.png
  45. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeySaveSelected_24x11.png
  46. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/KeySave_24x11.png
  47. 0 0
      apps_broken_by_last_refactors/nfc_maker/assets/WarningDolphin_45x42.png
  48. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker.c
  49. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker.h
  50. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker_10px.png
  51. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker_text_input.c
  52. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker_text_input.h
  53. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker_validators.c
  54. 0 0
      apps_broken_by_last_refactors/nfc_maker/nfc_maker_validators.h
  55. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene.c
  56. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene.h
  57. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_bluetooth.c
  58. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_config.h
  59. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact.c
  60. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_last.c
  61. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_mail.c
  62. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_phone.c
  63. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_url.c
  64. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_https.c
  65. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_mail.c
  66. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_phone.c
  67. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_result.c
  68. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_save.c
  69. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_start.c
  70. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_text.c
  71. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_url.c
  72. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi.c
  73. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_auth.c
  74. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_encr.c
  75. 0 0
      apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_pass.c
  76. 0 0
      apps_broken_by_last_refactors/nfc_maker/strnlen.c
  77. 0 0
      apps_broken_by_last_refactors/nfc_maker/strnlen.h
  78. 2 1
      base_pack/hex_viewer/helpers/hex_viewer_storage.h
  79. 10 5
      base_pack/mfkey32_nested/mfkey.c
  80. 1 1
      base_pack/tetris_game/tetris_game.c

+ 0 - 0
base_pack/mifare_nested/LICENSE.md → apps_broken_by_last_refactors/mifare_nested/LICENSE.md


+ 0 - 0
base_pack/mifare_nested/README.md → apps_broken_by_last_refactors/mifare_nested/README.md


+ 0 - 0
base_pack/mifare_nested/TODO.md → apps_broken_by_last_refactors/mifare_nested/TODO.md


+ 0 - 0
base_pack/mifare_nested/application.fam → apps_broken_by_last_refactors/mifare_nested/application.fam


+ 0 - 0
base_pack/mifare_nested/assets/ApplyTag.png → apps_broken_by_last_refactors/mifare_nested/assets/ApplyTag.png


+ 0 - 0
base_pack/mifare_nested/assets/DolphinCry.png → apps_broken_by_last_refactors/mifare_nested/assets/DolphinCry.png


+ 0 - 0
base_pack/mifare_nested/assets/DolphinSuccess.png → apps_broken_by_last_refactors/mifare_nested/assets/DolphinSuccess.png


+ 0 - 0
base_pack/mifare_nested/assets/Loading.png → apps_broken_by_last_refactors/mifare_nested/assets/Loading.png


+ 0 - 0
base_pack/mifare_nested/assets/icon.png → apps_broken_by_last_refactors/mifare_nested/assets/icon.png


+ 0 - 0
base_pack/mifare_nested/lib/crypto1/crypto1.c → apps_broken_by_last_refactors/mifare_nested/lib/crypto1/crypto1.c


+ 0 - 0
base_pack/mifare_nested/lib/crypto1/crypto1.h → apps_broken_by_last_refactors/mifare_nested/lib/crypto1/crypto1.h


+ 0 - 0
base_pack/mifare_nested/lib/nested/nested.c → apps_broken_by_last_refactors/mifare_nested/lib/nested/nested.c


+ 0 - 0
base_pack/mifare_nested/lib/nested/nested.h → apps_broken_by_last_refactors/mifare_nested/lib/nested/nested.h


+ 0 - 0
base_pack/mifare_nested/lib/parity/parity.c → apps_broken_by_last_refactors/mifare_nested/lib/parity/parity.c


+ 0 - 0
base_pack/mifare_nested/lib/parity/parity.h → apps_broken_by_last_refactors/mifare_nested/lib/parity/parity.h


+ 0 - 0
base_pack/mifare_nested/mifare_nested.c → apps_broken_by_last_refactors/mifare_nested/mifare_nested.c


+ 0 - 0
base_pack/mifare_nested/mifare_nested.h → apps_broken_by_last_refactors/mifare_nested/mifare_nested.h


+ 0 - 0
base_pack/mifare_nested/mifare_nested_i.h → apps_broken_by_last_refactors/mifare_nested/mifare_nested_i.h


+ 0 - 0
base_pack/mifare_nested/mifare_nested_worker.c → apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker.c


+ 0 - 0
base_pack/mifare_nested/mifare_nested_worker.h → apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker.h


+ 0 - 0
base_pack/mifare_nested/mifare_nested_worker_i.h → apps_broken_by_last_refactors/mifare_nested/mifare_nested_worker_i.h


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene.h → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene.h


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_about.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_about.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_added_keys.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_added_keys.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_check.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_check.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_check_keys.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_check_keys.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_collecting.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_collecting.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_config.h → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_config.h


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_failed.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_failed.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_need_collection.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_need_collection.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_need_key_recovery.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_need_key_recovery.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_no_keys.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_no_keys.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_no_nonces_collected.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_no_nonces_collected.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_nonces_collected.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_nonces_collected.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_settings.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_settings.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_start.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_start.c


+ 0 - 0
base_pack/mifare_nested/scenes/mifare_nested_scene_static_encrypted_nonce.c → apps_broken_by_last_refactors/mifare_nested/scenes/mifare_nested_scene_static_encrypted_nonce.c


+ 0 - 0
base_pack/nfc_maker/application.fam → apps_broken_by_last_refactors/nfc_maker/application.fam


+ 0 - 0
base_pack/nfc_maker/assets/DolphinNice_96x59.png → apps_broken_by_last_refactors/nfc_maker/assets/DolphinNice_96x59.png


+ 0 - 0
base_pack/nfc_maker/assets/KeyBackspaceSelected_16x9.png → apps_broken_by_last_refactors/nfc_maker/assets/KeyBackspaceSelected_16x9.png


+ 0 - 0
base_pack/nfc_maker/assets/KeyBackspace_16x9.png → apps_broken_by_last_refactors/nfc_maker/assets/KeyBackspace_16x9.png


+ 0 - 0
base_pack/nfc_maker/assets/KeyKeyboardSelected_10x11.png → apps_broken_by_last_refactors/nfc_maker/assets/KeyKeyboardSelected_10x11.png


+ 0 - 0
base_pack/nfc_maker/assets/KeyKeyboard_10x11.png → apps_broken_by_last_refactors/nfc_maker/assets/KeyKeyboard_10x11.png


+ 0 - 0
base_pack/nfc_maker/assets/KeySaveSelected_24x11.png → apps_broken_by_last_refactors/nfc_maker/assets/KeySaveSelected_24x11.png


+ 0 - 0
base_pack/nfc_maker/assets/KeySave_24x11.png → apps_broken_by_last_refactors/nfc_maker/assets/KeySave_24x11.png


+ 0 - 0
base_pack/nfc_maker/assets/WarningDolphin_45x42.png → apps_broken_by_last_refactors/nfc_maker/assets/WarningDolphin_45x42.png


+ 0 - 0
base_pack/nfc_maker/nfc_maker.c → apps_broken_by_last_refactors/nfc_maker/nfc_maker.c


+ 0 - 0
base_pack/nfc_maker/nfc_maker.h → apps_broken_by_last_refactors/nfc_maker/nfc_maker.h


+ 0 - 0
base_pack/nfc_maker/nfc_maker_10px.png → apps_broken_by_last_refactors/nfc_maker/nfc_maker_10px.png


+ 0 - 0
base_pack/nfc_maker/nfc_maker_text_input.c → apps_broken_by_last_refactors/nfc_maker/nfc_maker_text_input.c


+ 0 - 0
base_pack/nfc_maker/nfc_maker_text_input.h → apps_broken_by_last_refactors/nfc_maker/nfc_maker_text_input.h


+ 0 - 0
base_pack/nfc_maker/nfc_maker_validators.c → apps_broken_by_last_refactors/nfc_maker/nfc_maker_validators.c


+ 0 - 0
base_pack/nfc_maker/nfc_maker_validators.h → apps_broken_by_last_refactors/nfc_maker/nfc_maker_validators.h


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene.h → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene.h


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_bluetooth.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_bluetooth.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_config.h → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_config.h


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_contact.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_contact_last.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_last.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_contact_mail.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_mail.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_contact_phone.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_phone.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_contact_url.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_contact_url.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_https.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_https.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_mail.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_mail.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_phone.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_phone.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_result.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_result.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_save.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_save.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_start.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_start.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_text.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_text.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_url.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_url.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_wifi.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_wifi_auth.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_auth.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_wifi_encr.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_encr.c


+ 0 - 0
base_pack/nfc_maker/scenes/nfc_maker_scene_wifi_pass.c → apps_broken_by_last_refactors/nfc_maker/scenes/nfc_maker_scene_wifi_pass.c


+ 0 - 0
base_pack/nfc_maker/strnlen.c → apps_broken_by_last_refactors/nfc_maker/strnlen.c


+ 0 - 0
base_pack/nfc_maker/strnlen.h → apps_broken_by_last_refactors/nfc_maker/strnlen.h


+ 2 - 1
base_pack/hex_viewer/helpers/hex_viewer_storage.h

@@ -1,3 +1,5 @@
+#pragma once
+
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 #include <storage/storage.h>
 #include <storage/storage.h>
@@ -17,6 +19,5 @@
 void hex_viewer_save_settings(void* context);
 void hex_viewer_save_settings(void* context);
 void hex_viewer_read_settings(void* context);
 void hex_viewer_read_settings(void* context);
 
 
-
 bool hex_viewer_open_file(void* context, const char* file_path);
 bool hex_viewer_open_file(void* context, const char* file_path);
 bool hex_viewer_read_file(void* context);
 bool hex_viewer_read_file(void* context);

+ 10 - 5
base_pack/mfkey32_nested/mfkey.c

@@ -28,7 +28,7 @@
 #include <stdint.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <storage/storage.h>
 #include <storage/storage.h>
-#include <lib/nfc/helpers/mf_classic_dict.h>
+#include <toolbox/stream/buffered_file_stream.h>
 #include <lib/toolbox/args.h>
 #include <lib/toolbox/args.h>
 #include <lib/flipper_format/flipper_format.h>
 #include <lib/flipper_format/flipper_format.h>
 #include <dolphin/dolphin.h>
 #include <dolphin/dolphin.h>
@@ -50,10 +50,10 @@
 #define CONST_M2_1 (LF_POLY_ODD << 1)
 #define CONST_M2_1 (LF_POLY_ODD << 1)
 #define CONST_M1_2 (LF_POLY_ODD)
 #define CONST_M1_2 (LF_POLY_ODD)
 #define CONST_M2_2 (LF_POLY_EVEN << 1 | 1)
 #define CONST_M2_2 (LF_POLY_EVEN << 1 | 1)
-#define BIT(x, n) ((x) >> (n) & 1)
+#define BIT(x, n) ((x) >> (n)&1)
 #define BEBIT(x, n) BIT(x, (n) ^ 24)
 #define BEBIT(x, n) BIT(x, (n) ^ 24)
 #define SWAPENDIAN(x) \
 #define SWAPENDIAN(x) \
-    ((x) = ((x) >> 8 & 0xff00ff) | ((x) & 0xff00ff) << 8, (x) = (x) >> 16 | (x) << 16)
+    ((x) = ((x) >> 8 & 0xff00ff) | ((x)&0xff00ff) << 8, (x) = (x) >> 16 | (x) << 16)
 //#define SIZEOF(arr) sizeof(arr) / sizeof(*arr)
 //#define SIZEOF(arr) sizeof(arr) / sizeof(*arr)
 
 
 static int eta_round_time = 56;
 static int eta_round_time = 56;
@@ -148,10 +148,15 @@ typedef struct {
     size_t remaining_nonces;
     size_t remaining_nonces;
 } MfClassicNonceArray;
 } MfClassicNonceArray;
 
 
-struct MfClassicDict {
+typedef enum {
+    MfClassicDictTypeSystem,
+    MfClassicDictTypeUser,
+} MfClassicDictType;
+
+typedef struct {
     Stream* stream;
     Stream* stream;
     uint32_t total_keys;
     uint32_t total_keys;
-};
+} MfClassicDict;
 
 
 static const uint8_t table[256] = {
 static const uint8_t table[256] = {
     0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3,
     0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3,

+ 1 - 1
base_pack/tetris_game/tetris_game.c

@@ -470,7 +470,7 @@ int32_t tetris_game_app() {
     view_port_free(view_port);
     view_port_free(view_port);
     furi_message_queue_free(event_queue);
     furi_message_queue_free(event_queue);
     furi_mutex_free(tetris_state->mutex);
     furi_mutex_free(tetris_state->mutex);
-    furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal)
+    furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
     free(newPiece);
     free(newPiece);
     free(tetris_state);
     free(tetris_state);