mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:16:50 +02:00
Automatically go to quest-dev domain on startup
This commit is contained in:
parent
6f5d0b7191
commit
ae6a73c710
1 changed files with 8 additions and 10 deletions
|
@ -168,10 +168,8 @@ bool OculusMobileDisplayPlugin::isHmdMounted() const {
|
||||||
static void goToDevMobile() {
|
static void goToDevMobile() {
|
||||||
auto addressManager = DependencyManager::get<AddressManager>();
|
auto addressManager = DependencyManager::get<AddressManager>();
|
||||||
auto currentAddress = addressManager->currentAddress().toString().toStdString();
|
auto currentAddress = addressManager->currentAddress().toString().toStdString();
|
||||||
if (std::string::npos == currentAddress.find("dev-mobile")) {
|
if (std::string::npos == currentAddress.find("quest-dev")) {
|
||||||
addressManager->handleLookupString("hifi://dev-mobile/495.236,501.017,482.434/0,0.97452,0,-0.224301");
|
addressManager->handleLookupString("hifi://quest-dev");
|
||||||
//addressManager->handleLookupString("hifi://dev-mobile/504,498,491/0,0,0,0");
|
|
||||||
//addressManager->handleLookupString("hifi://dev-mobile/0,-1,1");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -217,12 +215,12 @@ bool OculusMobileDisplayPlugin::beginFrameRender(uint32_t frameIndex) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// static uint32_t count = 0;
|
static uint32_t count = 0;
|
||||||
// if ((++count % 1000) == 0) {
|
if ((++count % 1000) == 0) {
|
||||||
// AbstractViewStateInterface::instance()->postLambdaEvent([] {
|
AbstractViewStateInterface::instance()->postLambdaEvent([] {
|
||||||
// goToDevMobile();
|
goToDevMobile();
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
return result && Parent::beginFrameRender(frameIndex);
|
return result && Parent::beginFrameRender(frameIndex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue