mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibDebug: Identify embedded resources with a preceding dot
This commit is contained in:
parent
edd4913573
commit
e65767c2e7
1 changed files with 7 additions and 1 deletions
|
@ -308,7 +308,13 @@ LineProgram::DirectoryAndFile LineProgram::get_directory_and_file(size_t file_in
|
||||||
|
|
||||||
bool LineProgram::looks_like_embedded_resource() const
|
bool LineProgram::looks_like_embedded_resource() const
|
||||||
{
|
{
|
||||||
return source_files().size() == 1 && source_files()[0].name.view().contains("serenity_icon_"sv);
|
if (source_files().size() == 1)
|
||||||
|
return source_files()[0].name.view().contains("serenity_icon_"sv);
|
||||||
|
|
||||||
|
if (source_files().size() == 2 && source_files()[0].name.view() == "."sv)
|
||||||
|
return source_files()[1].name.view().contains("serenity_icon_"sv);
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue