This commit is contained in:
Fire Cube 2025-06-04 22:27:14 +02:00
parent c975b7ac16
commit f26b74efd8
2 changed files with 13 additions and 13 deletions

View File

@ -4,7 +4,6 @@
#include <filesystem> #include <filesystem>
#include <set> #include <set>
#include <fmt/core.h> #include <fmt/core.h>
#include <string_view>
#include "common/config.h" #include "common/config.h"
#include "common/debug.h" #include "common/debug.h"

View File

@ -36,18 +36,19 @@ int main(int argc, char* argv[]) {
std::unordered_map<std::string, std::function<void(int&)>> arg_map = { std::unordered_map<std::string, std::function<void(int&)>> arg_map = {
{"-h", {"-h",
[&](int&) { [&](int&) {
std::cout << "Usage: shadps4 [options] <elf or eboot.bin path>\n" std::cout
"Options:\n" << "Usage: shadps4 [options] <elf or eboot.bin path>\n"
" -g, --game <path|ID> Specify game path to launch\n" "Options:\n"
" -- ... Parameters passed to the game ELF. " " -g, --game <path|ID> Specify game path to launch\n"
"Needs to be at the end of the line, and everything after \"--\" is a " " -- ... Parameters passed to the game ELF. "
"game argument.\n" "Needs to be at the end of the line, and everything after \"--\" is a "
" -p, --patch <patch_file> Apply specified patch file\n" "game argument.\n"
" -i, --ignore-game-patch Disable automatic loading of game patch\n" " -p, --patch <patch_file> Apply specified patch file\n"
" -f, --fullscreen <true|false> Specify window initial fullscreen " " -i, --ignore-game-patch Disable automatic loading of game patch\n"
"state. Does not overwrite the config file.\n" " -f, --fullscreen <true|false> Specify window initial fullscreen "
" --add-game-folder <folder> Adds a new game folder to the config.\n" "state. Does not overwrite the config file.\n"
" -h, --help Display this help message\n"; " --add-game-folder <folder> Adds a new game folder to the config.\n"
" -h, --help Display this help message\n";
exit(0); exit(0);
}}, }},
{"--help", [&](int& i) { arg_map["-h"](i); }}, {"--help", [&](int& i) { arg_map["-h"](i); }},