mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibDebug: Factor out the "looks like embedded resource" condition
This commit is contained in:
parent
afc055c088
commit
edd4913573
3 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue