mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 20:37:11 +02:00
Merge pull request #14818 from wayne-chen/oculusLoginFeature
MS20925: Oculus login button not appearing
This commit is contained in:
commit
35c0af0bf3
1 changed files with 7 additions and 4 deletions
|
@ -761,6 +761,11 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
||||||
static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";
|
static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";
|
||||||
bool suppressPrompt = cmdOptionExists(argc, const_cast<const char**>(argv), SUPPRESS_SETTINGS_RESET);
|
bool suppressPrompt = cmdOptionExists(argc, const_cast<const char**>(argv), SUPPRESS_SETTINGS_RESET);
|
||||||
|
|
||||||
|
// set the OCULUS_STORE property so the oculus plugin can know if we ran from the Oculus Store
|
||||||
|
static const auto OCULUS_STORE_ARG = "--oculus-store";
|
||||||
|
bool isStore = cmdOptionExists(argc, const_cast<const char**>(argv), OCULUS_STORE_ARG);
|
||||||
|
qApp->setProperty(hifi::properties::OCULUS_STORE, isStore);
|
||||||
|
|
||||||
// Ignore any previous crashes if running from command line with a test script.
|
// Ignore any previous crashes if running from command line with a test script.
|
||||||
bool inTestMode { false };
|
bool inTestMode { false };
|
||||||
for (int i = 0; i < argc; ++i) {
|
for (int i = 0; i < argc; ++i) {
|
||||||
|
@ -1138,10 +1143,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
qCDebug(interfaceapp) << "[VERSION] We will use DEVELOPMENT global services.";
|
qCDebug(interfaceapp) << "[VERSION] We will use DEVELOPMENT global services.";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// set the OCULUS_STORE property so the oculus plugin can know if we ran from the Oculus Store
|
bool isStore = property(hifi::properties::OCULUS_STORE).toBool();
|
||||||
static const QString OCULUS_STORE_ARG = "--oculus-store";
|
|
||||||
bool isStore = arguments().indexOf(OCULUS_STORE_ARG) != -1;
|
|
||||||
setProperty(hifi::properties::OCULUS_STORE, isStore);
|
|
||||||
DependencyManager::get<WalletScriptingInterface>()->setLimitedCommerce(isStore); // Or we could make it a separate arg, or if either arg is set, etc. And should this instead by a hifi::properties?
|
DependencyManager::get<WalletScriptingInterface>()->setLimitedCommerce(isStore); // Or we could make it a separate arg, or if either arg is set, etc. And should this instead by a hifi::properties?
|
||||||
|
|
||||||
updateHeartbeat();
|
updateHeartbeat();
|
||||||
|
|
Loading…
Reference in a new issue