1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibDebug: Factor out the "looks like embedded resource" condition

This commit is contained in:
Tim Schumacher 2023-01-12 14:07:27 +01:00 committed by Jelle Raaijmakers
parent afc055c088
commit edd4913573
3 changed files with 8 additions and 1 deletions

View file

@ -306,4 +306,9 @@ LineProgram::DirectoryAndFile LineProgram::get_directory_and_file(size_t file_in
return { directory_entry, file_entry.name };
}
bool LineProgram::looks_like_embedded_resource() const
{
return source_files().size() == 1 && source_files()[0].name.view().contains("serenity_icon_"sv);
}
}