mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-19 21:13:12 -07:00
Use correct Target in GUI CLI Start
This commit is contained in:
parent
6c46920adb
commit
3c2e9a0418
1 changed files with 4 additions and 2 deletions
|
@ -123,6 +123,7 @@ int real_main(int argc, char *argv[])
|
||||||
QString host = args[args.size()-1];
|
QString host = args[args.size()-1];
|
||||||
QByteArray morning;
|
QByteArray morning;
|
||||||
QByteArray regist_key;
|
QByteArray regist_key;
|
||||||
|
ChiakiTarget target = CHIAKI_TARGET_PS4_10;
|
||||||
|
|
||||||
if(parser.value(regist_key_option).isEmpty() && parser.value(morning_option).isEmpty())
|
if(parser.value(regist_key_option).isEmpty() && parser.value(morning_option).isEmpty())
|
||||||
{
|
{
|
||||||
|
@ -134,6 +135,7 @@ int real_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
morning = temphost.GetRPKey();
|
morning = temphost.GetRPKey();
|
||||||
regist_key = temphost.GetRPRegistKey();
|
regist_key = temphost.GetRPRegistKey();
|
||||||
|
target = temphost.GetTarget();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("No configuration found for '%s'\n", args[1].toLocal8Bit().constData());
|
printf("No configuration found for '%s'\n", args[1].toLocal8Bit().constData());
|
||||||
|
@ -142,6 +144,7 @@ int real_main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// TODO: explicit option for target
|
||||||
regist_key = parser.value(regist_key_option).toUtf8();
|
regist_key = parser.value(regist_key_option).toUtf8();
|
||||||
if(regist_key.length() > sizeof(ChiakiConnectInfo::regist_key))
|
if(regist_key.length() > sizeof(ChiakiConnectInfo::regist_key))
|
||||||
{
|
{
|
||||||
|
@ -161,8 +164,7 @@ int real_main(int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: target here
|
StreamSessionConnectInfo connect_info(&settings, target, host, regist_key, morning, parser.isSet(fullscreen_option));
|
||||||
StreamSessionConnectInfo connect_info(&settings, CHIAKI_TARGET_PS4_10, host, regist_key, morning, parser.isSet(fullscreen_option));
|
|
||||||
return RunStream(app, connect_info);
|
return RunStream(app, connect_info);
|
||||||
}
|
}
|
||||||
#ifdef CHIAKI_ENABLE_CLI
|
#ifdef CHIAKI_ENABLE_CLI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue