mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
ConfigureComponents: Use FileSystem
instead of DeprecatedFile
This commit is contained in:
parent
97cc2b33b7
commit
1c54c8a01c
Notes:
sideshowbarker
2024-07-16 21:39:25 +09:00
Author: https://github.com/cammo1123 Commit: https://github.com/SerenityOS/serenity/commit/1c54c8a01c Pull-request: https://github.com/SerenityOS/serenity/pull/18026 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/caoimhebyrne ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 4 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <AK/StringView.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <spawn.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -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/*'.");
|
||||
|
|
Loading…
Add table
Reference in a new issue