mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 13:47:59 +03:00
Updated help strings to reflect new room implementation
This commit is contained in:
parent
544c6b4bbc
commit
fdbc74b506
5 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright Citra Emulator Project / Lime3DS Emulator Project
|
||||
// Copyright Citra Emulator Project / Azahar Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
|
@ -25,6 +25,10 @@ constexpr char help_string[] =
|
|||
// TODO: Move -m outside of this check when it is implemented in Qt frontend
|
||||
"-m, --multiplayer [nick:password@address:port] Nickname, password, address and port for "
|
||||
"multiplayer (currently only usable with SDL frontend)\n"
|
||||
#endif
|
||||
#ifdef ENABLE_ROOM
|
||||
" --room Utilize dedicated multiplayer room functionality (equivalent to "
|
||||
"the old citra-room executable)\n"
|
||||
#endif
|
||||
"-v, --version Output version information and exit\n"
|
||||
"-w, --windowed Start in windowed mode";
|
||||
|
|
|
@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
|
||||
if (launch_room) {
|
||||
LaunchRoom(argc, argv);
|
||||
LaunchRoom(argc, argv, true);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -161,11 +161,16 @@ static void InitializeLogging(const std::string& log_file) {
|
|||
}
|
||||
|
||||
/// Application entry point
|
||||
void LaunchRoom(int argc, char** argv) {
|
||||
void LaunchRoom(int argc, char** argv, bool called_by_option) {
|
||||
Common::DetachedTasks detached_tasks;
|
||||
int option_index = 0;
|
||||
char* endarg;
|
||||
|
||||
char* new_argv0 = argv[0];
|
||||
if (called_by_option) {
|
||||
strcat(new_argv0, " --room");
|
||||
}
|
||||
|
||||
std::string room_name;
|
||||
std::string room_description;
|
||||
std::string password;
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
void LaunchRoom(int argc, char** argv);
|
||||
void LaunchRoom(int argc, char** argv, bool called_by_option);
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
#include "citra_room/citra_room.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
LaunchRoom(argc, argv);
|
||||
LaunchRoom(argc, argv, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue