mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Ignore empty lines in HEX files
They are free-form enough that empty lines should probably be supported.
This commit is contained in:
@@ -401,6 +401,10 @@ static void parseHEXFile(std::filebuf &file) {
|
||||
if (!readLine(file, line)) {
|
||||
break;
|
||||
}
|
||||
// Ignore empty lines.
|
||||
if (line.length() == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.length() != 6
|
||||
|| line.find_first_not_of("0123456789ABCDEFabcdef"sv) != std::string::npos) {
|
||||
|
||||
Reference in New Issue
Block a user