mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-25 18:46:55 +01:00
nfc: Remove backup path
This commit is contained in:
parent
8fe69cd0fb
commit
eb1983daa6
@ -223,16 +223,8 @@ namespace nfc
|
||||
// Update tag NDEF data
|
||||
ctx->tag->SetNDEFData(ctx->writeMessage.ToBytes());
|
||||
|
||||
// TODO remove this once writing is confirmed working
|
||||
fs::path newPath = ctx->tagPath;
|
||||
if (newPath.extension() != ".bak")
|
||||
{
|
||||
newPath += ".bak";
|
||||
}
|
||||
cemuLog_log(LogType::NFC, "Saving tag as {}...", newPath.string());
|
||||
|
||||
// open file for writing
|
||||
FileStream* fs = FileStream::createFile2(newPath);
|
||||
FileStream* fs = FileStream::openFile2(ctx->tagPath, true);
|
||||
if (!fs)
|
||||
{
|
||||
result = NFC_MAKE_RESULT(NFC_RESULT_BASE_WRITE, 0x22);
|
||||
|
Loading…
Reference in New Issue
Block a user