Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…irmware into mntm-dev
  • Loading branch information
Willy-JL committed Mar 5, 2024
2 parents 7fa364d + 5e47048 commit 7da10fc
Show file tree
Hide file tree
Showing 8 changed files with 1,771 additions and 1,006 deletions.
6 changes: 6 additions & 0 deletions applications/main/archive/scenes/archive_scene_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ void archive_scene_delete_on_enter(void* context) {
filename = furi_string_alloc();

ArchiveFile_t* current = archive_get_current_file(app->browser);

FuriString* filename_no_ext = furi_string_alloc();
path_extract_filename(current->path, filename_no_ext, true);
strlcpy(app->text_store, furi_string_get_cstr(filename_no_ext), MAX_NAME_LEN);
furi_string_free(filename_no_ext);

path_extract_filename(current->path, filename, false);

char delete_str[64];
Expand Down
1,308 changes: 1,308 additions & 0 deletions applications/main/nfc/api/mosgortrans/mosgortrans_util.c

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions applications/main/nfc/api/mosgortrans/mosgortrans_util.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once

#include <bit_lib.h>
#include <datetime.h>
#include <furi/core/string.h>
#include <nfc/protocols/mf_classic/mf_classic.h>
#include <furi_hal_rtc.h>

#ifdef __cplusplus
extern "C" {
#endif

bool mosgortrans_parse_transport_block(const MfClassicBlock* block, FuriString* result);

#ifdef __cplusplus
}
#endif
7 changes: 6 additions & 1 deletion applications/main/nfc/api/nfc_app_api_table_i.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "gallagher/gallagher_util.h"
#include "mosgortrans/mosgortrans_util.h"

/*
* A list of app's private functions and objects to expose for plugins.
Expand All @@ -10,4 +11,8 @@ static constexpr auto nfc_app_api_table = sort(create_array_t<sym_entry>(
gallagher_deobfuscate_and_parse_credential,
void,
(GallagherCredential * credential, const uint8_t* cardholder_data_obfuscated)),
API_VARIABLE(GALLAGHER_CARDAX_ASCII, const uint8_t*)));
API_VARIABLE(GALLAGHER_CARDAX_ASCII, const uint8_t*),
API_METHOD(
mosgortrans_parse_transport_block,
bool,
(const MfClassicBlock* block, FuriString* result))));
9 changes: 9 additions & 0 deletions applications/main/nfc/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ App(
sources=["plugins/supported_cards/aime.c"],
)

App(
appid="bip_parser",
apptype=FlipperAppType.PLUGIN,
entry_point="bip_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/bip.c"],
)

App(
appid="saflok_parser",
apptype=FlipperAppType.PLUGIN,
Expand Down
Loading

0 comments on commit 7da10fc

Please sign in to comment.