diff --git a/Meta/Lagom/Tools/ConfigureComponents/main.cpp b/Meta/Lagom/Tools/ConfigureComponents/main.cpp index 4741b1da35..bb2e8d3e84 100644 --- a/Meta/Lagom/Tools/ConfigureComponents/main.cpp +++ b/Meta/Lagom/Tools/ConfigureComponents/main.cpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -232,10 +231,10 @@ int main() return 1; } - auto current_working_directory = Core::DeprecatedFile::current_working_directory(); - if (current_working_directory.is_null()) + auto current_working_directory = FileSystem::current_working_directory(); + if (current_working_directory.is_error()) return 1; - auto lexical_cwd = LexicalPath(current_working_directory); + auto lexical_cwd = LexicalPath(current_working_directory.release_value().to_deprecated_string()); auto& parts = lexical_cwd.parts_view(); if (parts.size() < 2 || parts[parts.size() - 2] != "Build") { warnln("\e[31mError:\e[0m This program needs to be executed from inside 'Build/*'.");