I’m looking to prevent other Vive VR apps from closing the editor or packaged game. In normal function launching another vive app will kill your editor. Does this require a source modification or do we have something exposed that prevents this from occuring?
This new IHeadMountedDisplay optional function LoadHMD(bool) solves the case of knowing when you launch the other app and preventing it from closing the editor/game.
Relevant; though it doesn’t crash anymore (seems the editor respects the FPlatformMisc::RequestExit) it still closes and this is not the desired behavior.
After digging deeply through the source and trying a few things found something that worked for my purposes, but it requires source modification. Essentially you can unload the openvr module, launch the other app and return then reload the openvr link, it’s just a few lines of code. Will post a link to a repo for that one.
To have it so that any app won’t close your app, we’d need to intercept the RequestExit, ignore it and unload the module instead, then listen to openvr until it’s done with the app and reload the module. That is a bit more complicated of a workaround.