fix: Handle loaders with new lines at the top instead of intel hex style right at the start

This commit is contained in:
Gustave Monce
2024-08-30 20:42:16 +02:00
parent 0174fc8b30
commit a6c017986b
+5
View File
@@ -89,6 +89,11 @@ namespace WPinternals
foreach (string Line in Lines) foreach (string Line in Lines)
{ {
if (string.IsNullOrEmpty(Line))
{
continue;
}
if (Line[0] != ':') if (Line[0] != ':')
{ {
throw new BadImageFormatException(); throw new BadImageFormatException();