mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 07:29:58 +01:00
citra_room: Added removed option warning for --enable-citra-mods/-e
This commit is contained in:
parent
4ea9d76093
commit
51dc3c6858
@ -56,7 +56,6 @@ static void PrintHelp(const char* argv0) {
|
|||||||
"--web-api-url Citra Web API url\n"
|
"--web-api-url Citra Web API url\n"
|
||||||
"--ban-list-file The file for storing the room ban list\n"
|
"--ban-list-file The file for storing the room ban list\n"
|
||||||
"--log-file The file for storing the room log\n"
|
"--log-file The file for storing the room log\n"
|
||||||
"--enable-citra-mods Allow Citra Community Moderators to moderate on your room\n"
|
|
||||||
"-h, --help Display this help and exit\n"
|
"-h, --help Display this help and exit\n"
|
||||||
"-v, --version Output version information and exit\n";
|
"-v, --version Output version information and exit\n";
|
||||||
}
|
}
|
||||||
@ -197,10 +196,10 @@ void LaunchRoom(int argc, char** argv, bool called_by_option) {
|
|||||||
{"web-api-url", required_argument, 0, 'a'},
|
{"web-api-url", required_argument, 0, 'a'},
|
||||||
{"ban-list-file", required_argument, 0, 'b'},
|
{"ban-list-file", required_argument, 0, 'b'},
|
||||||
{"log-file", required_argument, 0, 'l'},
|
{"log-file", required_argument, 0, 'l'},
|
||||||
{"enable-citra-mods", no_argument, 0, 'e'},
|
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{"version", no_argument, 0, 'v'},
|
{"version", no_argument, 0, 'v'},
|
||||||
// Removed options
|
// Removed options
|
||||||
|
{"enable-citra-mods", no_argument, 0, 'e'},
|
||||||
{"preferred-game", optional_argument, 0, 'g'},
|
{"preferred-game", optional_argument, 0, 'g'},
|
||||||
{"preferred-game-id", optional_argument, 0, 0},
|
{"preferred-game-id", optional_argument, 0, 0},
|
||||||
// Entry option
|
// Entry option
|
||||||
@ -210,7 +209,8 @@ void LaunchRoom(int argc, char** argv, bool called_by_option) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
while (optind < argc) {
|
while (optind < argc) {
|
||||||
int arg = getopt_long(argc, argv, "n:d:p:m:w:s:u:t:a:i:l:hvg", long_options, &option_index);
|
int arg =
|
||||||
|
getopt_long(argc, argv, "n:d:p:m:w:s:u:t:a:i:l:hveg", long_options, &option_index);
|
||||||
if (arg != -1) {
|
if (arg != -1) {
|
||||||
switch (static_cast<char>(arg)) {
|
switch (static_cast<char>(arg)) {
|
||||||
case 'n':
|
case 'n':
|
||||||
@ -255,6 +255,9 @@ void LaunchRoom(int argc, char** argv, bool called_by_option) {
|
|||||||
case 'v':
|
case 'v':
|
||||||
PrintVersion();
|
PrintVersion();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
case 'e':
|
||||||
|
PrintRemovedOptionWarning(argv[0], "--enable-citra-mods/-e");
|
||||||
|
exit(255);
|
||||||
case 'g':
|
case 'g':
|
||||||
PrintRemovedOptionWarning(argv[0], "--preferred-game/-g");
|
PrintRemovedOptionWarning(argv[0], "--preferred-game/-g");
|
||||||
exit(255);
|
exit(255);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user