mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 05:45:42 -04:00
Qt: Add -raintegration command line parameter
This commit is contained in:
parent
f08f124eaa
commit
06d6447e59
@ -733,8 +733,8 @@ bool EmuThread::acquireHostDisplay(RenderAPI api)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_host_display->MakeCurrent() || !g_host_display->SetupDevice() ||
|
if (!g_host_display->MakeCurrent() || !g_host_display->SetupDevice() || !ImGuiManager::Initialize() ||
|
||||||
!ImGuiManager::Initialize() || !CommonHost::CreateHostDisplayResources())
|
!CommonHost::CreateHostDisplayResources())
|
||||||
{
|
{
|
||||||
ImGuiManager::Shutdown();
|
ImGuiManager::Shutdown();
|
||||||
CommonHost::ReleaseHostDisplayResources();
|
CommonHost::ReleaseHostDisplayResources();
|
||||||
@ -1887,6 +1887,9 @@ void QtHost::PrintCommandLineHelp(const char* progname)
|
|||||||
std::fprintf(stderr, " -settings <filename>: Loads a custom settings configuration from the\n"
|
std::fprintf(stderr, " -settings <filename>: Loads a custom settings configuration from the\n"
|
||||||
" specified filename. Default settings applied if file not found.\n");
|
" specified filename. Default settings applied if file not found.\n");
|
||||||
std::fprintf(stderr, " -earlyconsole: Creates console as early as possible, for logging.\n");
|
std::fprintf(stderr, " -earlyconsole: Creates console as early as possible, for logging.\n");
|
||||||
|
#ifdef WITH_RAINTEGRATION
|
||||||
|
std::fprintf(stderr, " -raintegration: Use RAIntegration instead of built-in achievement support.\n");
|
||||||
|
#endif
|
||||||
std::fprintf(stderr, " --: Signals that no more arguments will follow and the remaining\n"
|
std::fprintf(stderr, " --: Signals that no more arguments will follow and the remaining\n"
|
||||||
" parameters make up the filename. Use when the filename contains\n"
|
" parameters make up the filename. Use when the filename contains\n"
|
||||||
" spaces or starts with a dash.\n");
|
" spaces or starts with a dash.\n");
|
||||||
@ -2022,6 +2025,13 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app,
|
|||||||
InitializeEarlyConsole();
|
InitializeEarlyConsole();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#ifdef WITH_RAINTEGRATION
|
||||||
|
else if (CHECK_ARG("-raintegration"))
|
||||||
|
{
|
||||||
|
Achievements::SwitchToRAIntegration();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
else if (CHECK_ARG("--"))
|
else if (CHECK_ARG("--"))
|
||||||
{
|
{
|
||||||
no_more_args = true;
|
no_more_args = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user