From 1c76fd4beeb8cc0d7bb412ce4ebd42a9016588d2 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 8 Jul 2021 17:52:51 +0300 Subject: [PATCH] Add missing Heimdall patch --- misc/heimdall/patch_filepartindex.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 misc/heimdall/patch_filepartindex.patch diff --git a/misc/heimdall/patch_filepartindex.patch b/misc/heimdall/patch_filepartindex.patch new file mode 100644 index 0000000..252fde4 --- /dev/null +++ b/misc/heimdall/patch_filepartindex.patch @@ -0,0 +1,16 @@ +--- a/heimdall/source/BridgeManager.cpp 2021-07-01 20:11:25.904083328 +0300 ++++ b/heimdall/source/BridgeManager.cpp 2021-07-01 20:16:20.223490117 +0300 +@@ -1107,6 +1107,13 @@ bool BridgeManager::SendFile(FILE *file, + success = ReceivePacket(sendFilePartResponse); + int receivedPartIndex = sendFilePartResponse->GetPartIndex(); + ++ if (filePartIndex == 0) ++ { ++ // Hack ++ success = true; ++ receivedPartIndex = filePartIndex; ++ } ++ + delete sendFilePartResponse; + + if (!success)