mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 03:55:37 +00:00
cleanup
This commit is contained in:
parent
c975b7ac16
commit
f26b74efd8
@ -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"
|
||||||
|
25
src/main.cpp
25
src/main.cpp
@ -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); }},
|
||||||
|
Loading…
Reference in New Issue
Block a user