Merge branch 'main' into unblur-shiggy-splash

This commit is contained in:
viacoro 2023-11-19 16:04:57 +01:00 committed by GitHub
commit d912d2c41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 17 deletions

View file

@ -26,7 +26,7 @@
"arrpc": "github:OpenAsar/arrpc#89f4da610ccfac93f461826a446a17cd3b23953d"
},
"optionalDependencies": {
"@vencord/venmic": "^1.7.0"
"@vencord/venmic": "^2.1.2"
},
"devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",

View file

@ -11,8 +11,8 @@ dependencies:
optionalDependencies:
'@vencord/venmic':
specifier: ^1.7.0
version: 1.7.0
specifier: ^2.1.2
version: 2.1.2
devDependencies:
'@fal-works/esbuild-plugin-global-externals':
@ -960,8 +960,8 @@ packages:
type-fest: 3.13.1
dev: true
/@vencord/venmic@1.7.0:
resolution: {integrity: sha512-WtIfoPaFWMU0Q98KQx9BTjTQQgevb0hwpTiJTDi5uL274JRSt5lm/J5qIwsYrPNsvLv0AJvyUV0Zc8dU+hUc5w==}
/@vencord/venmic@2.1.2:
resolution: {integrity: sha512-2++ozTgEVORoJ0kJ1DpFy7MJVLoG3qD503CKqG4Ztm7fUCWyxXICWDBdtCIsFzVZCBfScz+c9XXae4gXRBeJ3Q==}
engines: {node: '>=14.15'}
os: [linux]
requiresBuild: true
@ -1219,8 +1219,8 @@ packages:
engines: {node: '>= 0.4'}
dev: true
/axios@1.5.1(debug@4.3.4):
resolution: {integrity: sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==}
/axios@1.6.1(debug@4.3.4):
resolution: {integrity: sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==}
requiresBuild: true
dependencies:
follow-redirects: 1.15.3(debug@4.3.4)
@ -1471,7 +1471,7 @@ packages:
hasBin: true
requiresBuild: true
dependencies:
axios: 1.5.1(debug@4.3.4)
axios: 1.6.1(debug@4.3.4)
debug: 4.3.4
fs-extra: 10.1.0
lodash.isplainobject: 4.0.6

View file

@ -15,9 +15,9 @@ import { Settings } from "../settings";
const exec = promisify(callbackExec);
// Bump this to re-show the prompt
const layoutVersion = 1;
const layoutVersion = 2;
// Get this from "show details" on the profile after exporting as a shared personal layout or using share with community
const layoutId = "3063409873"; // Vesktop Layout v1
const layoutId = "3080264545"; // Vesktop Layout v2
const numberRegex = /^[0-9]*$/;
export const isDeckGameMode = process.env.SteamOS === "1" && process.env.SteamGamepadUI === "1";

View file

@ -53,10 +53,9 @@ ipcMain.handle(IpcEvents.VIRT_MIC_LIST, () => {
ipcMain.handle(
IpcEvents.VIRT_MIC_START,
(_, target: string) =>
(_, targets: string[]) =>
obtainVenmic()?.link({
key: "application.name",
value: target,
props: targets.map(target => ({ key: "application.name", value: target })),
mode: "include"
})
);
@ -65,8 +64,12 @@ ipcMain.handle(
IpcEvents.VIRT_MIC_START_SYSTEM,
() =>
obtainVenmic()?.link({
key: "application.process.id",
value: getRendererAudioServicePid(),
props: [
{
key: "application.process.id",
value: getRendererAudioServicePid()
}
],
mode: "exclude"
})
);

View file

@ -63,7 +63,7 @@ export const VesktopNative = {
virtmic: {
list: () =>
invoke<{ ok: false; isGlibcxxToOld: boolean } | { ok: true; targets: string[] }>(IpcEvents.VIRT_MIC_LIST),
start: (target: string) => invoke<void>(IpcEvents.VIRT_MIC_START, target),
start: (targets: string[]) => invoke<void>(IpcEvents.VIRT_MIC_START, targets),
startSystem: () => invoke<void>(IpcEvents.VIRT_MIC_START_SYSTEM),
stop: () => invoke<void>(IpcEvents.VIRT_MIC_STOP)
},

View file

@ -106,7 +106,7 @@ export function openScreenSharePicker(screens: Source[], skipPicker: boolean) {
if (v.audioSource === "Entire System") {
await VesktopNative.virtmic.startSystem();
} else {
await VesktopNative.virtmic.start(v.audioSource);
await VesktopNative.virtmic.start([v.audioSource]);
}
}
resolve(v);