mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
LibDebug: Identify embedded resources with a preceding dot
This commit is contained in:
parent
edd4913573
commit
e65767c2e7
Notes:
sideshowbarker
2024-07-17 06:33:00 +09:00
Author: https://github.com/timschumi
Commit: e65767c2e7
Pull-request: https://github.com/SerenityOS/serenity/pull/16971
Reviewed-by: https://github.com/gmta ✅
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