[FL-2970] Untangle NFC_APP_FOLDER from nfc_device (#2124)
* Untangle NFC_APP_FOLDER from nfc_device * Make the folder an internal part of the nfc device struct * Move the NFC folder definition to the nfc allocator * Move the NFC folder definition to the allocator in the nfc magic FAP * Replace furi_string_printf with furi_string_set for folder allocation and handle the cases when folder has no slashes * Build and allocation fixes Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		@@ -49,6 +49,7 @@ NfcMagic* nfc_magic_alloc() {
 | 
			
		||||
 | 
			
		||||
    // Nfc device
 | 
			
		||||
    nfc_magic->nfc_dev = nfc_device_alloc();
 | 
			
		||||
    furi_string_set(nfc_magic->nfc_dev->folder, NFC_APP_FOLDER);
 | 
			
		||||
 | 
			
		||||
    // Open GUI record
 | 
			
		||||
    nfc_magic->gui = furi_record_open(RECORD_GUI);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user