acegoal07 1 سال پیش
والد
کامیت
caaa6e1849
2فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 1 1
      application.fam
  2. 2 4
      scences/emulation.c

+ 1 - 1
application.fam

@@ -8,7 +8,7 @@ App(
     fap_category="NFC",
     fap_author="@acegoal07",
     fap_weburl="https://github.com/acegoal07/FlipperZero_NFC_Playlist/tree/main",
-    fap_version="1.4",
+    fap_version="1.1",
     fap_icon="assets/icon.png",
     fap_private_libs=[
         Lib(

+ 2 - 4
scences/emulation.c

@@ -87,10 +87,8 @@ int32_t nfc_playlist_emulation_task(void* context) {
 
          if (EmulationState != NfcPlaylistEmulationState_Emulating) {break;}
 
-         char const* full_file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path;
-         char file_name[sizeof(full_file_name)];
-         strcpy(file_name, full_file_name);
-         strtok(file_name, ".");
+
+         char* file_name = strchr(file_path, '/') != NULL ? &strrchr(file_path, '/')[1] : file_path;
          char const* file_ext = &strrchr(file_path, '.')[1];
          int time_counter_ms = (options_emulate_timeout[nfc_playlist->settings.emulate_timeout]*1000);