mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Update --help text
This commit is contained in:
parent
beea900d6f
commit
37fb5dce96
@ -29,9 +29,11 @@ int main(int argc, char* argv[]) {
|
|||||||
[&](int&) {
|
[&](int&) {
|
||||||
std::cout << "Usage: shadps4 [options] <elf or eboot.bin path>\n"
|
std::cout << "Usage: shadps4 [options] <elf or eboot.bin path>\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -g, --game <path|ID> Specify game path to launch\n"
|
" -g, --game <path|ID> Specify game path to launch\n"
|
||||||
" -p, --patch <patch_file> Apply specified patch file\n"
|
" -p, --patch <patch_file> Apply specified patch file\n"
|
||||||
" -h, --help Display this help message\n";
|
" -f, --fullscreen <true|false> Specify window initial fullscreen "
|
||||||
|
"state. Does not overwrite the config file."
|
||||||
|
" -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); }},
|
||||||
|
@ -37,14 +37,16 @@ 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: emulator [options]\n"
|
std::cout << "Usage: shadps4 [options]\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" No arguments: Opens the GUI.\n"
|
" No arguments: Opens the GUI.\n"
|
||||||
" -g, --game <path|ID> Specify <eboot.bin or elf path> or <game "
|
" -g, --game <path|ID> Specify <eboot.bin or elf path> or "
|
||||||
"ID (CUSAXXXXX)> to launch\n"
|
"<game ID (CUSAXXXXX)> to launch\n"
|
||||||
" -p, --patch <patch_file> Apply specified patch file\n"
|
" -p, --patch <patch_file> Apply specified patch file\n"
|
||||||
" -s, --show-gui Show the GUI\n"
|
" -s, --show-gui Show the GUI\n"
|
||||||
" -h, --help Display this help message\n";
|
" -f, --fullscreen <true|false> Specify window initial fullscreen "
|
||||||
|
"state. Does not overwrite the config file."
|
||||||
|
" -h, --help Display this help message\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
}},
|
}},
|
||||||
{"--help", [&](int& i) { arg_map["-h"](i); }}, // Redirect --help to -h
|
{"--help", [&](int& i) { arg_map["-h"](i); }}, // Redirect --help to -h
|
||||||
@ -77,7 +79,8 @@ int main(int argc, char* argv[]) {
|
|||||||
{"-f",
|
{"-f",
|
||||||
[&](int& i) {
|
[&](int& i) {
|
||||||
if (++i >= argc) {
|
if (++i >= argc) {
|
||||||
std::cerr << "Error: Missing argument for -f/--fullscreen\n";
|
std::cerr
|
||||||
|
<< "Error: Invalid argument for -f/--fullscreen. Use 'true' or 'false'.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
std::string f_param(argv[i]);
|
std::string f_param(argv[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user