Created
March 6, 2021 09:01
-
-
Save Tobiaqs/b7c25136a713fe68de47f4ad76376c89 to your computer and use it in GitHub Desktop.
Patch that fixes discovery of recovery partition data in Ryan-Myers/NKit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ec683a95700d922d0f574abaefaaf5773c4d8425 Mon Sep 17 00:00:00 2001 | |
From: Tobias Sytsma <tobias@tobiass.nl> | |
Date: Sat, 6 Mar 2021 09:59:09 +0100 | |
Subject: [PATCH] Fix recovery data finding for Ryan-Myers/NKit | |
--- | |
NKit/Settings/RecoveryData.cs | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/NKit/Settings/RecoveryData.cs b/NKit/Settings/RecoveryData.cs | |
index ad0c275..a217cb2 100644 | |
--- a/NKit/Settings/RecoveryData.cs | |
+++ b/NKit/Settings/RecoveryData.cs | |
@@ -96,7 +96,7 @@ namespace Nanook.NKit | |
public static string GetUpdatePartition(Settings settings, uint crc) | |
{ | |
- Regex m = new Regex(@"\\([A-Z0-9]{40})_([A-Z]+)_" + crc.ToString("X8") + "$", RegexOptions.IgnoreCase); | |
+ Regex m = new Regex(@"[/|\\]([A-Z0-9]{40})_([A-Z]+)_" + crc.ToString("X8") + "$", RegexOptions.IgnoreCase); | |
string fn = null; | |
if (Directory.Exists(settings.RecoveryFilesPath) && (fn = Directory.GetFiles(settings.RecoveryFilesPath).FirstOrDefault(a => m.IsMatch(a))) != null) | |
return fn; | |
-- | |
2.27.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment