diff --git a/DevTools/UserspaceEmulator/main.cpp b/DevTools/UserspaceEmulator/main.cpp index 9d2e5018a1..7d120ee768 100644 --- a/DevTools/UserspaceEmulator/main.cpp +++ b/DevTools/UserspaceEmulator/main.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -39,12 +39,11 @@ int main(int argc, char** argv, char** env) { if (argc == 1) { - out() << "usage: UserspaceEmulator "; + out() << "Usage: UserspaceEmulator "; return 0; } - // FIXME: Allow specifying any command in $PATH instead of requiring a full executable path. - const char* executable_path = argv[1]; + auto executable_path = Core::find_executable_in_path(argv[1]); MappedFile mapped_file(executable_path); if (!mapped_file.is_valid()) {