src/League/Client/RiotClient.cpp
std::vector<std::string> LCU::League::Client::UX::GetCommandLineArgs(Session* session)
{
	// Parse response
	rapidjson::Document responseNative;
	responseNative.Parse(LCU::Network::HTTP::Get(session, "/riotclient/command-line-args").c_str());
	LCU::SerializedValue responseLayered(responseNative);

	// Turn response to object array
	std::vector<LCU::SerializedValue> responseArray = responseLayered.asVector();
	std::vector<std::basic_string<response_char>> object;
	for (int i = 0; i < responseArray.size(); i++) {
		object.push_back(responseArray[i].asString());
	}

	return object;
}
/// <summary>
/// Get the command line arguments of the application.
/// </summary>
/// <param name="session">Pointer to a Session object.</param>
/// <returns>String vector of command line arguments.</returns>

Get the command line arguments of the application.

Pointer to a Session object.
String vector of command line arguments.
Get the command line arguments of the application . Pointer to a Session object . String vector of command line arguments .
std::vector<std::string> LCU::League::Client::UX::GetCommandLineArgs(Session* session)
{
	rapidjson::Document responseNative;
	responseNative.Parse(LCU::Network::HTTP::Get(session, "/riotclient/command-line-args").c_str());
	LCU::SerializedValue responseLayered(responseNative);
	std::vector<LCU::SerializedValue> responseArray = responseLayered.asVector();
	std::vector<std::basic_string<response_char>> object;
	for (int i = 0; i < responseArray.size(); i++) {
		object.push_back(responseArray[i].asString());
	}
	return object;
}
std :: vector < std :: string > LCU :: League :: Client :: UX :: GetCommandLineArgs ( Session * session ) { rapidjson :: Document responseNative ; responseNative . Parse ( LCU :: Network :: HTTP :: Get ( session , " " ) . c_str ( ) ) ; LCU :: SerializedValue responseLayered ( responseNative ) ; std :: vector < LCU :: SerializedValue > responseArray = responseLayered . asVector ( ) ; std :: vector < std :: basic_string < response_char > > object ; for ( int i = 0 ; i < responseArray . size ( ) ; i ++ ) { object . push_back ( responseArray [ i ] . asString ( ) ) ; } return object ; }
<summary>
Get the command line arguments of the application.
<summary > Get the command line arguments of the application .
// Parse response // Turn response to object array