1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

HackStudio: Add Project::project_is_serenity() function

This commit is contained in:
Itamar 2022-01-07 16:27:13 +02:00 committed by Andreas Kling
parent 95545648bd
commit 3afd17db9d
2 changed files with 8 additions and 0 deletions

View file

@ -59,4 +59,11 @@ String Project::to_absolute_path(String const& path) const
return LexicalPath { String::formatted("{}/{}", m_root_path, path) }.string();
}
bool Project::project_is_serenity() const
{
// FIXME: Improve this heuristic
// Running "Meta/serenity.sh copy-src" installs the serenity repository at this path in the home directory
return m_root_path.ends_with("Source/serenity");
}
}