fix: only start SteamVR for VR-only games from Steam's library (#1076)

Games that merely support VR (No Man's Sky) were held at Play while
DroidDeck downloaded and started SteamVR, so they always opened in VR.
They now launch normally; VR-only games still wait for SteamVR.
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-10-18 09:26:01 -04:00
1 parent 69c88aa344
commit 7d149acb00
3 files changed
+17 -10

No files matched your search

+11 -9
View File
@@ -34,24 +34,26 @@ assert.strictEqual(calls[0].receiver, apps);
const receiver = {};
apps.RunGame.call(receiver, '611670', 'custom args', 2, 100);
apps.RunGame('611670', 'duplicate', -1, 100);
apps.RunGame(620980, '', -1, 100);
assert.deepStrictEqual(requests, ['611670', '620980']);
assert.strictEqual(calls.length, 1);
assert.strictEqual(apps.RunGame(620980, '', -1, 100), 'native');
assert.deepStrictEqual(requests, ['611670']);
assert.strictEqual(calls.length, 2);
assert.deepStrictEqual(calls[1].args, [620980, '', -1, 100]);
changed(false);
assert.strictEqual(calls.length, 1);
assert.strictEqual(calls.length, 2);
changed(true);
assert.strictEqual(calls.length, 3);
assert.strictEqual(calls[1].receiver, receiver);
assert.deepStrictEqual(calls[1].args, ['611670', 'custom args', 2, 100]);
assert.deepStrictEqual(calls[2].args, [620980, '', -1, 100]);
assert.strictEqual(calls[2].receiver, receiver);
assert.deepStrictEqual(calls[2].args, ['611670', 'custom args', 2, 100]);
assert.strictEqual(timers.size, 0);
changed(true);
assert.strictEqual(calls.length, 3);
apps.RunGame('18446744069414584320', '', -1, 100);
changed(false);
assert.strictEqual(apps.RunGame('18446744069414584320', '', -1, 100), 'native');
assert.deepStrictEqual(calls[3].args, ['18446744069414584320', '', -1, 100]);
assert.strictEqual(requests.at(-1), '18446744069414584320');
assert.deepStrictEqual(requests, ['611670']);
assert.strictEqual(timers.size, 0);
changed(true);
apps.RunGame('250820', '', -1, 100);
openvr.StartVR(true);